Options
Java button submit a form
aueddonline
Member Posts: 611 ■■□□□□□□□□
in Off-Topic
I've made a HTML form and need a bit of java script that will e-mail the information entered. I'm using Visual Web developer 2008 express, my guess so far is if I get some code for "function Submit1_onclick()" and the put the right thing in the form action"" I might get this working, Anyone point me in the right direction, it's turning into a long day
<script language="javascript" type="text/javascript">
// <!CDATA[
function Submit1_onclick() {
}
// ]]>
</script>
<form method="post" action="">
<br />
<table class="style1">
<tr>
<td align="right" width="300">
First name:
<input id="Text1" type="text" />
<br />
Surname: <input id="Text2" type="text" /><br />
Company:
<input id="Text3" type="text" /><br />
Telephone Number:
<input id="Text4" type="text" /><br />
<br />
Addtional information:<br />
<textarea id="TextArea1" cols="30" rows="10" name="S1"></textarea>
<br />
<input id="Submit1" type="submit" value="Press to Submit" onclick="return Submit1_onclick()" />
</td>
<td width="300">
</td>
</tr>
</table>
<br />
<br />
</form>
<script language="javascript" type="text/javascript">
// <!CDATA[
function Submit1_onclick() {
}
// ]]>
</script>
<form method="post" action="">
<br />
<table class="style1">
<tr>
<td align="right" width="300">
First name:
<input id="Text1" type="text" />
<br />
Surname: <input id="Text2" type="text" /><br />
Company:
<input id="Text3" type="text" /><br />
Telephone Number:
<input id="Text4" type="text" /><br />
<br />
Addtional information:<br />
<textarea id="TextArea1" cols="30" rows="10" name="S1"></textarea>
<br />
<input id="Submit1" type="submit" value="Press to Submit" onclick="return Submit1_onclick()" />
</td>
<td width="300">
</td>
</tr>
</table>
<br />
<br />
</form>
What's another word for Thesaurus?
Comments
-
Optionstiersten Member Posts: 4,505Wrong forum
You'll need a CGI script or something equivalent on the server end to take the HTTP POST data and send the email. The best you can do client side is to just bring up their email client with prefilled data by using mailto and it still requires the user to click the link then send. It won't autosend for obvious reasons. -
Optionsveritas_libertas Member Posts: 5,746 ■■■■■■■■■■Anyone point me in the right direction, it's turning into a long day
WoW, I guess
Try Off-Topic -
Optionsjason_lunde Member Posts: 567The answer is 42.
ha, just because google says so doesn't mean its true! like the updated blog page btw...
Let me google that for you