I have a login function in my site.I have used
if($count==1){$row = mysql_fetch_array($result); print ("login success");}else{print ("wrong!");}
I wanna if the If condition true it will give a success msg and redirect the previous page. Else it will show a login wrong message with javascript alert box with ok button. How can i do it? please help me anybody.......