how to use ajax perform this??
i face a problem that it will still perform update query if i click cancel, how to use ajax to solve this?? somebody help me pls...
var answer=confirm("Do you want to update your email?");
mysql_query("update user set u_email ='$email' where u_user='$username'");
alert ("You choose update your email.");
alert ("You had rejected to update your email.");