i checked teh code. teh variables were referring to same database column and hence is the issue. fixed the same today,.
retested on xp os and it works fine
done with it