Page 1 of 1

email form does not submit data in post method

Posted: Tue Oct 14, 2003 6:40 am
by gwwindia
I have an email which contains a whole form to be submitted to the php code.
When I use get method, it works properly, but when I make it to POST method, it does not work. Also, same HTML code as an pure HTML page works properly for POST method.
What can be the problem? How can I make the email to submit the data through POST method?
My HTML code for email :
====
<form name="form1" method="post" action="getSurvey.php" target="_blank">
====
My php code :
====
reset ($HTTP_POST_VARS);
while (list ($key, $val) = each ($HTTP_POST_VARS)) {
====
it seems that email is not submitting the data. Because when I try to submit the data from a html page, it submits and then if i press the refresh button, it asks to submit again.
Whereas, when i submit through email, it does not submits the data(in post method) and when i press refresh, it does not asks to submit again.

Posted: Tue Oct 14, 2003 6:44 am
by Nay
I doubt that's the whole code so it would help if we could see the entire script.

-Nay

Posted: Tue Oct 14, 2003 6:59 am
by gwwindia
<form name="form1" method="post" action="getSurvey.php" target="_blank">
<p>
<p><br>
</p>
<table width="70%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td VALIGN=BOTTOM ALIGN=CENTER><img src="siteimages/gww_banner.gif"> </td>
</tr>
<tr>
<td>&nbsp; </td>
</tr>
<tr>
<td>
<table width="100%" border="1" cellpadding="0" cellspacing="0">
<tr>
<td><table width="100%" border="0" cellpadding="3" cellspacing="0">
<tr>
<td bgcolor="#CCCCCC"> <b>Over the next six months</b> </td>
</tr>
<tr bgcolor="#EAEAFF">
<td>
<p></p>
<p>1) I expect the overall economic climate to</p>
</td>
</tr>
<tr bgcolor="#EAEAFF">
<td>
<input type="radio" name="radiobutton1" value="1">
increase
<input type="radio" name="radiobutton1" value="2">
decrease
<input type="radio" name="radiobutton1" value="3">
remain the same</td>
</tr>
<tr>
<td>2) I expect the availability of debt finance for transactions
to </td>
</tr>
<tr>
<td>
<input type="radio" name="radiobutton2" value="1">
improve
<input type="radio" name="radiobutton2" value="2">
decline
<input type="radio" name="radiobutton2" value="3">
remain the same</td>
</tr>
<tr bgcolor="#EAEAFF">
<td>3) I expect entry multiples on transactions to</td>
</tr>
<tr bgcolor="#EAEAFF">
<td>
<input type="radio" name="radiobutton3" value="1">
increase
<input type="radio" name="radiobutton3" value="2">
decrease
<input type="radio" name="radiobutton3" value="3">
remain the same</td>
</tr>
<tr>
<td>4) I expect the volume of transactions to </td>
</tr>
<tr>
<td>
<input type="radio" name="radiobutton4" value="1">
increase
<input type="radio" name="radiobutton4" value="2">
decrease
<input type="radio" name="radiobutton4" value="3">
remain the same </td>
</tr>
<tr bgcolor="#EAEAFF">
<td>5) I expect the financial performance of our investee companies
to</td>
</tr>
<tr bgcolor="#EAEAFF">
<td>
<input type="radio" name="radiobutton5" value="1">
improve
<input type="radio" name="radiobutton5" value="2">
decline
<input type="radio" name="radiobutton5" value="3">
remain the same </td>
</tr>
<tr>
<td>6) I expect average deal size to </td>
</tr>
<tr>
<td>
<input type="radio" name="radiobutton6" value="1">
increase
<input type="radio" name="radiobutton6" value="2">
decrease
<input type="radio" name="radiobutton6" value="3">
remain the same</td>
</tr>
<tr>
<td valign=bottom bgcolor="#CCCCCC"> <b>Over the next twelve months</b>
</td>
</tr>
<tr bgcolor="#EAEAFF">
<td>7) Following the recent flotation of Yell, over the next six months
I expect the prospects for exit by flotation will: </td>
</tr>
<tr bgcolor="#EAEAFF">
<td>
<input type="radio" name="radiobutton7" value="1">
improve
<input type="radio" name="radiobutton7" value="2">
decline
<input type="radio" name="radiobutton7" value="3">
remain the same </td>
</tr>
<tr>
<td>8) I expect the greatest opportunity to add value and improve
overall portfolio returns will come from: </td>
</tr>
<tr>
<td>
<input type="radio" name="radiobutton8" value="1">
underlying growth buy & build restructuring </td>
</tr>
<tr>
<td>
<input type="radio" name="radiobutton8" value="2">
Other (please specify)
<input type="text" name="textfield" size="50">
</td>
</tr>
<tr bgcolor="#EAEAFF">
<td ALIGN=CENTER>
<input type="submit" name="Submit" value="Submit">
</td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
</table>
</form>

Posted: Tue Oct 14, 2003 7:00 am
by gwwindia
while (list ($key, $val) = each ($HTTP_POST_VARS)) {
echo "$key => $val<br>";
}