alert box popup from form onsubmit
Posted: Tue Jan 29, 2008 8:40 am
I am trying to replicate the functionality of a form on a webpage, and I need some help.
When the form is submitted with incorrect data an alert box is popped up in the browser window:

How do you do this?
Also, is validateFormOnSubmit() a php function? I didn't know that a function could be called in the file in the action= field...
TIA
Ed
Code: Select all
<form id="form1" onsubmit="return validateFormOnSubmit(this)"
name="updates" method="post" action="market_update_FV.php">
How do you do this?
Also, is validateFormOnSubmit() a php function? I didn't know that a function could be called in the file in the action= field...
TIA
Ed