Jump to content

Archived

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

supanoob

Form Actions

Recommended Posts

[code]<form method=\"POST\" action=\"mail.php?action=send&to=$sent_id\">
<table border=\"0\" width=\"100%\" id=\"table2\">
<tr>
<td width=\"238\">
<input name=\"T1\" size=\"8\" value=\"$to\" style=\"float: right\"></td>
<td><input type=\"text\" name=\"T2\" size=\"47\" value=\"$subject\"></td>
</tr>
</table>
<table border=\"0\" width=\"50%\" id=\"table3\" height=\"22\">
<tr>
<td align=\"center\"><textarea rows=\"5\" name=\"S1\" cols=\"55\"></textarea><br>
<input type=\"button\" value=\"Send\" name=\"Send\"></td>
</tr>
</table>
</td>
</tr>
</table></td></form>[/code]

Can someone tell me why the form action for this form is not working?

Share this post


Link to post
Share on other sites
Becuase your are using a button, rather than a submit button, change:
[code]<input type=\"button\" value=\"Send\" name=\"Send\">[/code]
to:
[code]<input type=\"submit\" value=\"Send\" name=\"Send\">[/code]

Share this post


Link to post
Share on other sites

×

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.