Tutorials
Setting up an email form
-
Setting up an email form
Posted on September 1, 2003
Written by
Louise (view more by Louise)
Comments (0)
Filed under Scripts: NL-PHPMail, Tutorials
In order to use the NL-PHPMail script, you have to know how to set up an e-mail form. If you don’t know how to do that, you can learn it here.
Setting up a form (for feedback, contact, affiliates request, etc.) is quite easy. First, open up notepad or any HTML editor and create a new file. For this tutorial, we’ll call it form.html, but you can call it whatever you want (note that if you are going to be using the image verification feature from NL-PHPMail, you will need to give your form a .php extension or it will not work). Now, copy and paste the code below:
<form method="post" action="nlphpmail.php">
<p>Name:<br />
<input type="text" name="name" size="20" /></p>
<p>Email:<br />
<input type="text" name="email" size="20" /></p>
<p>URL (<em>optional</em>):<br />
<input type="text" name="url" value="http://" size="20" /></p>
<p>Comments<br />
<textarea name="comments" rows="4" cols="40"></textarea></p>
<p><input type="submit" value="Submit" name="submit" />
<input type="reset" value="clear" name="clear" /></p>
</form>
This is an example of a very simple form. Of course you can add/remove fields, and customise everything with CSS. Please note though that you MUST name the submit button "submit" for the form to work with NL-PHPMail. More details can be seen in the readme file which is available with the script - please read this file before using the script, especially if you want to use image verification. This tutorial does not cover what you need to do to enable it.
Related FAQ
Comments
Comments are closed for this entry.