Thread: JS Email Form
Results 1 to 5 of 5
Related
-
Need help with form going to email. Forum: HTML Forum
Replies: 1 -
PHP Form email Forum: PHP Forum
Replies: 2 -
Simple email form Forum: HTML Forum
Replies: 6 -
Please help with email form script Forum: PHP Forum
Replies: 1 -
PHP email form. Forum: PHP Forum
Replies: 2
-
02-26-2006, 08:13 PM #1
JS Email Form
I know this is probably a very easy question, but I literaly just started JavaScript, as in about 15 minutes ago. I have this code for an email form:
<div align="center">
<form action="#" method="post" onsubmit="return configureValidation(this)" onreset="confirm('All form information will be erased.')">
<table class="formtable">
<tr>
<td>Name: <span class="required">*</span></td>
<td><input type="text" name="firstname" value="" class="text"></td>
</tr>
<tr>
<td>Email: <span class="required">*</span></td>
<td><input type="text" name="email" value="" class="text"></td>
</tr>
<tr>
<td>Your Website URL: <span class="required">*</span></td>
<td><input type="text" name="firstname" value="" class="text"></td>
</tr>
<tr>
<td>Comments:</td>
<td><textarea name="comments" value="" class="text" cols="20" rows="4"></textarea></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" name="submit" value="Send It" class="button"> <input type="reset" name="reset" value="Clear It"
class="button"></td>
</tr>
</table>
</form>
</div>
<p><div align="center">
</div><p>
Bailee
-
02-26-2006, 09:59 PM #2
Re: JS Email Form
You cannot send email using javascript. What you can do instead is have the action button execute something like a Perl or PHP script.
You might want to have a look at this page, as it gives you some alternatives. Hope it helps.Music Around The World - Collecting tips, trade
and want lists, album reviews, & more
-
05-14-2006, 12:43 PM #3
Re: JS Email Form
action="mailto:youremailaddress", method="post" and encType="text/plain" in your opening form tag(?).
Last edited by Paco_Blanco; 05-14-2006 at 12:51 PM.
-
05-14-2006, 01:55 PM #4
Re: JS Email Form
Originally Posted by Paco_Blanco
When a "mailto" link is visible in your source code, that's how spammers harvest your email address. You want something like this instead:
Code:<form action="yourphpscript.php" method="post">
Music Around The World - Collecting tips, trade
and want lists, album reviews, & more
-
05-14-2006, 02:05 PM #5
Cloudjiffy- PaaS for Developers
10-05-2020, 12:30 AM in Web Hosting Forum