Jump to content

Posting Multiple Variables to $_POST using HTML Forms


vajra_hendry

Recommended Posts

This is my code :

 

<FORM ACTION="php_steptwo001.php" METHOD="POST">
<INPUT TYPE="HIDDEN" NAME="duration" VALUE=3>
<INPUT TYPE="HIDDEN" NAME="banner" VALUE="test">
<INPUT TYPE="SUBMIT" VALUE"3 DAYS">
</FORM>

 

Only the 1st Variable 'duration' gets passed!! Help!!

 

 

your form should be this:

 

<FORM ACTION="php_steptwo001.php" METHOD="POST">
<INPUT TYPE="HIDDEN" NAME="duration" VALUE="3">
<INPUT TYPE="HIDDEN" NAME="banner" VALUE="test">
<INPUT TYPE="SUBMIT" VALUE="3 DAYS" NAME="3 DAYS">
</FORM>

 

and please post your PHP

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.