Re: Javascript and $_POST

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux