i like to validate a form designed in php and html with java script.
i had used the image to link on the other page.
snap shot of the code i am using::
echo"<form method=POST action=frmdisplay.php>";
echo"<input type=text name=txtname size=30>";
echo"<a href=frmdisplay.php><image src='test.jpg'></a>";
echo"</form>";
now i like to validate the text box that if it is not filled the n it should prompt what should i do.
plz send me the code to do this.
i also like to ask that can i use the value passed in the javascript func. in the php in the same page