Closed Thread Icon

Topic awaiting preservation: sending an email from a form (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=8501" title="Pages that link to Topic awaiting preservation: sending an email from a form (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: sending an email from a form <span class="small">(Page 1 of 1)</span>\

 
hecster2k
Nervous Wreck (II) Inmate

From: sj, ca, usa
Insane since: Feb 2002

posted posted 01-30-2003 01:35

is there any way to submit a form to an email address without having to create back end code? any way to do this through javascript or even through plain html? i've been trying to do a little research on this but came up empty handed. any assistance would be greatly appreciated. thanks in advance!

"there has to be a solution."

hecster2k
Nervous Wreck (II) Inmate

From: sj, ca, usa
Insane since: Feb 2002

posted posted 01-30-2003 02:08

figured it out ... it's totally unsecured though

code:
<script>
function send(form)
{
output='Name: '+form.name.value;
output+='\nAddress: '+form.address.value;
output+='\nCompany: '+form.company.value;
output+='\nComments: '+form.comments.value;
form.submit();
}
</script>
<form method="post" action="mailto:ggongon@telverse.com?subject=test" enctype="text/plain">
name: <input type="text" name="name"><br>
addr: <input type="text" name="address"><br>
company: <input type="text" name="company"><br>
comments: <input type="text" name="comments"><br>
<input type="button" onclick="send(this.form)">
</form>



"there has to be a solution."

« BackwardsOnwards »

Show Forum Drop Down Menu