Is it possible to create a msgbox with php ??? I want to check the matching of two password fields and display a msgbox with "password not match" !!!
Yes, you can do it by printing out javascript code. A google search will give you some great examples. javascript:alert('text here');
If you want to do it within the page you can modify the innerHTML of a div or use a text input field set to readonly which displays the alert.
do it like this in php: if($pass1 != $pass2){ echo "<script>alert(\"The two password did not match.\");</script>"; }
That won't work right. You want it to show prior to them leaving the form. The above post will show it after submitting and leaving the page. Google this term: javascript form validation -jquery Code (markup): It will give you a lot of resources. This looks like your best bet: http://www.tutorialspoint.com/javascript/javascript_form_validations.htm However, you will also want the PHP version for those with Javascript disabled. An example for your parse page: <?php if (empty($_POST['password']) || empty($_POST['passwordconf'])) { echo 'You left a field blank. <a href="#">Go back...</a>'; } else { if ($_POST['password'] != $_POST['passwordconf']) { echo 'The passwords do not match. <a href="#">Go back...</a>'; } } ?> Code (markup): Never trust in Javascript.