Re: Javascript and $_POST

From: Date: Wed, 07 Feb 2007 21:47:59 +0000
Subject: Re: Javascript and $_POST
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-248517@lists.php.net to get a copy of this message
Dan Shirah wrote:
And this is my Save option at the bottom of my page <form name="Submit" action="save.php" method="post" enctype="multipart/form-data"> <table align="center" border="0" cellpadding="0" cellspacing="0" width="680"> <tr> <td width="64" align="left"><a href="javascript:checkForm()" title="Save">Save</a></td> </tr> </table> </form> Er....Why aren't there any input elements within the <form> tag? Maybe you just condensed-out the inputs, but if your inputs aren't within the form, they won't be submitted.
E.g. if you have: <form id="dataForm"> <input ... /> <input ... /> </form> <form id="submitForm"> ... </form> If you submit "submitForm", nothing will get posted. You want to post "dataForm" in the above example. (Or whatever "inputForm" happens to be in your example.) jon

« previous php.general (#248517) next »