I have two questions. 1.I have to enter values to database through php. When I enter incorrect value, it gives the error message. But i want to give it as a pop up message. how can i do that? 2. If I enter incorrect value and after the pop up message comes , I want to details that i entered earlier are exist. Otherwise I have to enter all these again. How can i do that?
Well, you can get error message using this function: $errormessage = mysql_error(); PHP: I suppose you are using MySQL. Popping it is html/javascript question. If you want to save data that was entered you have to put values to input fields of form using $_GET or $_POST array.
Easy. In the form use: <form target="_blank"> form stuff </form> Then in the target page, you can throw the error off to the user, otherwise close the window. Another thing toy can do is onclick submit the form to a specific size and get the values using parent get variables. Peace,
you can use something like that....... echo "<script>alert('plese enter correct value');</script>"; in a exact postion to use it..