how create a msgbox with php ?



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” !!!

Try this in php:

if($pass1 != $pass2){
echo “<script>alert(“The two password did not match.”);</script>”;
}

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.