<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>CodeGrrl.com &#187; Scripts</title>
	<atom:link href="http://codegrrl.com/category/scripts/feed/" rel="self" type="application/rss+xml" />
	<link>http://codegrrl.com</link>
	<description>Taking the grr out of coding!</description>
	<pubDate>Tue, 22 Jul 2008 10:47:45 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
			<item>
		<title>PHPAskIt</title>
		<link>http://codegrrl.com/scripts/phpaskit</link>
		<comments>http://codegrrl.com/scripts/phpaskit#comments</comments>
		<pubDate>Thu, 11 Aug 2005 20:39:46 +0000</pubDate>
		<dc:creator>Amelie</dc:creator>
		
		<category><![CDATA[Amelie]]></category>

		<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://localhost/wordpress/?p=7</guid>
		<description><![CDATA[This script is no longer available at CodeGrrl. Please visit Amelie&#8217;s site to download the script in future.
]]></description>
			<content:encoded><![CDATA[<p>This script is no longer available at CodeGrrl. Please visit <a href="http://not-noticeably.net/scripts/phpaskit/" title="Amelie's site">Amelie&#8217;s site</a> to download the script in future.</p>
]]></content:encoded>
			<wfw:commentRss>http://codegrrl.com/scripts/phpaskit/feed</wfw:commentRss>
		</item>
		<item>
		<title>NL-GenericPages</title>
		<link>http://codegrrl.com/scripts/nl-genericpages</link>
		<comments>http://codegrrl.com/scripts/nl-genericpages#comments</comments>
		<pubDate>Thu, 08 Jan 2004 00:21:02 +0000</pubDate>
		<dc:creator>Sasha</dc:creator>
		
		<category><![CDATA[Sasha]]></category>

		<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://localhost/wordpress/?p=122</guid>
		<description><![CDATA[NL-GenericPages explains how to set up a generic page that is the same on all your sites except for a few variables that you define yourself. For example, if you run several fanlistings or cliques, the Rules page will look pretty much the same for all of them, except for maybe the title and the [...]]]></description>
			<content:encoded><![CDATA[<p>NL-GenericPages explains how to set up a generic page that is the same on all your sites except for a few variables that you define yourself. For example, if you run several fanlistings or cliques, the Rules page will look pretty much the same for all of them, except for maybe the title and the URL of the site. This explains how to set up the same page to be included in multiple sites, but with different site titles, URLs or whatever else you require. Again, this one is very easy.</p>
<p><span id="more-122"></span></p>
<h2>About</h2>
<p>Set up one page to be included in multiple sites, where the only difference will be a few variables defined by you. This is very useful is you run several similar sites (like a bunch of fanlistings) where a couple of pages are always the same except for the site name, the url etc. This script is currently in use on all of my fanlistings for the Rules and the About pages.</p>
<h2>Install</h2>
<p>I&#8217;ll show you how to do this by example. Say you own loads of fanlistings (like I do), and your Rules pages always looks something like this:</p>
<ul>
<li>You must be a fan of [SUBJECT]</li>
<li>You must fill in your country on the Join Form</li>
<li>If you own a website, you must provide a link back to [URL]. You may use a text link or one of the codes I created.</li>
<li>If you own a porn/hate/offensive site, I will not link you. I will add you to the member list, but I won&#8217;t add your URL.</li>
</ul>
<p>This page looks the same on all my fanlistings, except for [SUBJECT] and [URL]. Instead of having to copy and paste this code into all my Rules pages for all my fanlistings, I will only create this page once.</p>
<p>Open up Notepad/Editpad/your preferred HTML coding editor. Create a blank page and save it as whatever.php (replace whatever with your own page name). For this example, I&#8217;ll assume you named the page rules.php and that you will upload it to the root directory of your website.</p>
<p>Copy and paste the HTML from your Rules page (or any other page you&#8217;re doing this with) into the .php file. Now look at the bits that will be different for each site. In the example above, that would be [SUBJECT] and [URL]. Replace those bits with the following: &lt;?php echo $subject; ?&gt; and &lt;?php echo $url; ?&gt;. The &lt;?php opens the PHP tag, the echo part says that a variable should be displayed, and the dollar sign lets the php script know that what follows is a variable. You can change the &#8220;subject&#8221; and &#8220;url&#8221; to anything you want, and you can put as many variables in the .php file as you want. Just make sure the coding around it remains intact.</p>
<p>Now open up the pages you want to include this file into. Remove the HTML that you copied into the rules.php file, and insert the following:</p>
<pre>&lt;?php

//Put the variables that you have in the .php script below, with the right values for this page.

$subject =  "BlaBlaBla";
$url = "http://blabla.site.com";

//This will include the .php file. Be sure to replace "yoursite.com" with your own site address,
//and "rules" with whatever you named your .php page

include "rules.php";
?&gt;</pre>
<p>Read the code carefully and look for the lines that start with //. They are comments, and explain what and where you need to change something. If you have any problems with it, or any questions about this script, please feel free to leave a message at the <a href="http://codegrrl.com/forums">forums</a>. <img src='http://codegrrl.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> <strong>Please note that the page you are inserting this code into has to have a .php extension, otherwise it won&#8217;t work!!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://codegrrl.com/scripts/nl-genericpages/feed</wfw:commentRss>
		</item>
		<item>
		<title>NL-ConvertToPHP</title>
		<link>http://codegrrl.com/scripts/nl-converttophp</link>
		<comments>http://codegrrl.com/scripts/nl-converttophp#comments</comments>
		<pubDate>Wed, 07 Jan 2004 23:37:20 +0000</pubDate>
		<dc:creator>Sasha</dc:creator>
		
		<category><![CDATA[Sasha]]></category>

		<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://localhost/wordpress/?p=121</guid>
		<description><![CDATA[NL-ConvertToPHP allows you to easily convert your site to a PHP site, or optimize your current PHP coding. The advantages of using this method include 1) less pages to edit/upload, all your content will be in one file; 2) shorter urls, it will be index.php?about instead of index.php?z=about.php; 3) faster loading pages because of less [...]]]></description>
			<content:encoded><![CDATA[<p>NL-ConvertToPHP allows you to easily convert your site to a PHP site, or optimize your current PHP coding. The advantages of using this method include 1) less pages to edit/upload, all your content will be in one file; 2) shorter urls, it will be index.php?about instead of index.php?z=about.php; 3) faster loading pages because of less coding. This method uses only one line of PHP coding per section, so there&#8217;s very little to edit for you, you will have it up and running in no time.</p>
<p>Always wanted to convert your site to PHP, but always too intimidated to try? Read on, because I have here the easiest and fastest way to convert your site to PHP.<br />
Are you already using PHP on your site? Then read on anyway, because the coding used here is optimized, for faster page loading and less hassle for you.</p>
<p><span id="more-121"></span>This script will allow you to put the content for all of your pages into one file, and will display the content needed depending on what url you send your visitors to. The advantages over other PHP conversion scripts you may have seen:</p>
<ul>
<li><strong>All your content will be in one file.</strong> No more index.php, about.php, rules.php, codes.php etc&#8230;everything will be in index.php. Only one file to edit and upload and it takes up less space on your server.</li>
<li><strong>Shorther URLs.</strong> It will be index.php?about instead of index.php?z=about.inc</li>
<li><strong>Faster loading pages.</strong> Since the content is all inside the one page, the PHP script doesn&#8217;t have to go and get other files off the server, making your pages load faster.</li>
<li><strong>Less coding.</strong> One line of PHP code will do all this for you.</li>
</ul>
<h2>Install</h2>
<p>I&#8217;ll show you how to do this by example. Say you want to use this on a fanlisting you own. You would normally have the following pages: index, about, rules, join, codes, members and extra.</p>
<p>Open up all these pages in your <acronym title="HyperText Mark-up Language">HTML</acronym> editor, and then create a blank page in Notepad/Editpad/your text editor of choice. Paste the following code into the blank page, and save it as index.php (or any other name you like&#8230;as long as the extension is .php).</p>
<pre>&lt;?php

//Copy and paste the HTML that is the same in all your pages (the header and footer) into new files and name them header.php and footer.php.
//They will be included at the complete top and bottom of your pages, so you will only have to edit these 2 files if you want to change your layout.

include 'header.php';

if (!$_SERVER['QUERY_STRING']) { ?&gt;

//Paste here the HTML coding you have on your main page. This is what people will see when they go to index.php, without any ?section bit after it.

&lt;?php } elseif ($_SERVER['QUERY_STRING'] == "about") { ?&gt;
//Paste here your HTML code on the About page (without the header and footer code, obviously).

&lt;?php } elseif ($_SERVER['QUERY_STRING'] == "rules") { ?&gt;
//Paste here your HTML code on the Rules page (without the header and footer code, obviously).

&lt;?php } elseif ($_SERVER['QUERY_STRING'] == "join") { ?&gt;
//Paste here your HTML code on the Join page (without the header and footer code, obviously).

&lt;?php } elseif ($_SERVER['QUERY_STRING'] == "codes") { ?&gt;
//Paste here your HTML code on the Codes page (without the header and footer code, obviously).

&lt;?php } elseif ($_SERVER['QUERY_STRING'] == "members") { ?&gt;
//Paste here your HTML code on the Members page (without the header and footer code, obviously).

&lt;?php } elseif ($_SERVER['QUERY_STRING'] == "extra") { ?&gt;

//Paste here your HTML code on the Extra page (without the header and footer code, obviously).

&lt;?php }
include 'footer.php'; ?&gt;</pre>
<p>Read the code carefully and look for the lines that start with //. They are comments, and explain what and where you need to change something. If you have any problems with it, or any questions about this script, please feel free to post about it at the <a href="http://codegrrl.com/forums">forums</a>. <img src='http://codegrrl.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> <strong>Please note that the page you are inserting this code into has to have a .php extension, otherwise it won&#8217;t work!!</strong></p>
<p>You can add as many of the elseif lines as you want to, and you can name them anything you want. Just remember that in order to access that section, you will need the url to be index.php?yourname, with yourname being what you changed the text in quotation marks (in the example above, that would be about, rules join, etc.) to.</p>
<p>For my larger sites, I prefer to split the site up into sections (such as site, about the person and media), and have the coding above pasted into those php pages (so all the media things, such as images, audio and video will be in media.php, all site related sections such as about, credits, link me, affiliates etc. are in the site.php page and so on). That way, you won&#8217;t have one index file that is a mile long, and I won&#8217;t have to scroll through many lines of coding I don&#8217;t need to get to a section I need to edit.</p>
<p>If you use the coding exactly as I have pasted it above in the text box, you will have to change your navigation bar <acronym title="Uniform Resource Locator">URL</acronym>s to the following:</p>
<ul>
<li>About: index.php?about</li>
<li>Rules: index.php?rules</li>
<li>Join: index.php?join</li>
<li>Codes: index.php?codes</li>
<li>Members: index.php?members</li>
<li>Extra: index.php?extra</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://codegrrl.com/scripts/nl-converttophp/feed</wfw:commentRss>
		</item>
		<item>
		<title>NL-PHPMail</title>
		<link>http://codegrrl.com/scripts/nlphpmail</link>
		<comments>http://codegrrl.com/scripts/nlphpmail#comments</comments>
		<pubDate>Wed, 11 Dec 2002 17:53:15 +0000</pubDate>
		<dc:creator>Amelie</dc:creator>
		
		<category><![CDATA[Amelie]]></category>

		<category><![CDATA[Sasha]]></category>

		<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://localhost/wordpress/?page_id=6</guid>
		<description><![CDATA[NL-PHPMail is a simple form-mailing script which uses PHP&#8217;s mail() function to send the contents of a web form to your email address.
Now with image verification and multiple form compatibility!
New version 2.2.1: Minor update - removed name and email address from email headers to protect further against header injection.
Email the contents of any online form [...]]]></description>
			<content:encoded><![CDATA[<p>NL-PHPMail is a simple form-mailing script which uses PHP&#8217;s mail() function to send the contents of a web form to your email address.</p>
<p>Now with image verification and multiple form compatibility!</p>
<p><strong>New version 2.2.1:</strong> Minor update - removed name and email address from email headers to protect further against header injection.</p>
<p><span id="more-6"></span>Email the contents of any online form to yourself (or someone else, if you want it to). Very easy to set up and use, and it doesn&#8217;t require any of that CHMOD/cgi bin business most other Form Mail scripts need. You&#8217;ll have it up and running in minutes.</p>
<p><strong>Current version:</strong> 2.2.1.</p>
<h2>Install</h2>
<ol>
<li>
<p>Open up form.php and edit it to fit in with your website. Or alternatively, create your own HTML form (as long as it has a .php extension) and have it point to nlphpmail.php in the &lt;form action=&quot;&quot;&gt; tag, (see the example in form.php if you are not sure how to do this).</p>
<p>Make sure you change this value to match the subject of the email you want to be sent:</p>
<pre>&lt;input type=&quot;hidden&quot; name=&quot;subject&quot; value=&quot;SUBJECT HERE&quot; /&gt;</pre>
<p>If you are creating your own form page, remember to add this or your email will have no subject (which some email clients identify as spam, and some servers refuse to send).</p>
</li>
<li>
<p>Open nlphpmail.php in a text editor such as Notepad and read through the file - instructions are given where edits are required.</p>
</li>
<li>
<p>Upload the form, captcha.php, verify.jpg and nlphpmail.php to your webserver. They can be in any folder you wish, as long as they are in the same folder. If you upload nlphpmail.php into a different folder from the form, make sure you change the path in the &lt;form action=&quot;&quot;&gt; part as well.<br />
<br />
<strong>IMPORTANT: YOU WILL NEED TO CHMOD verify.jpg TO 666 FOR THE SCRIPT TO WORK PROPERLY!</strong></p>
</li>
<li>
<p> If you are writing your own form page, please make sure that you &quot;name&quot; your submit or send button &quot;submit&quot;. If you do not do this, your form will not work. This is part of the spam protection and makes sure that your form was actually filled in from your page.</p>
<p>Example:</p>
<pre>&lt;input type=&quot;submit&quot; value=&quot;Send form&quot; name=&quot;submit&quot; /&gt;</pre>
<p>See the name=&quot;submit&quot; part? That part MUST be included for the script to work.</p>
<p>Another thing you must do if you are creating your own form is to include captcha.php (you only need to do this if you require the use of image verification - you should set this preference in nlphpmail.php).</p>
<p>To do this:</p>
<p>a) At the VERY START of your form page (which must have a .php extension for this to work), before any HTML or other PHP code, add this line:</p>
<pre>&lt;?php include 'captcha.php'; ?&gt;</pre>
<p>This code must appear before any content on your page, and there must be no whitespace above it. If you aren&#8217;t making your own form, make sure that when editing form.php, you start editing beneath that code.</p>
<p>b) Where you want the image verification to show up, use this code:</p>
<pre>&lt;label for=&quot;verifyimage&quot;&gt;Enter the letters and numbers you see on this image into the box below:&lt;/label&gt;&lt;br /&gt;

&lt;img src=&quot;verify.jpg&quot; alt=&quot;CAPTCHA Image&quot; /&gt;&lt;br /&gt;
&lt;input type=&quot;text&quot; name=&quot;verifyimage&quot; id=&quot;verifyimage&quot; maxlength=&quot;5&quot; /&gt;</pre>
<p>You MUST use the &lt;input&gt; tag as written above. If you don&#8217;t, you will be unable to send the form. Feel free to change the text and placement of the image around (you cannot change the name of the image, so you must make sure the source of the image is &quot;verify.jpg&quot; and nothing else).</p>
<p>Please remember that not everyone will be able to use your form if you are using image verification. A lot of people browse with images turned off, or use screen readers which can&#8217;t decode the image, or simply can&#8217;t see the letters and numbers on the image. Make sure that you have an alternative method for such users to contact you.</p>
<p>If you aren&#8217;t using image verification and are not making your own form, please make sure to delete the parts of code as specified in form.php (there are two parts to delete, make sure you delete both of them). You can then rename your form to .html if you so wish.</p>
<p>Also, make sure you include the subject line in your form as detailed in step 1 above.</p>
<p>Please note: If you are using image verification, you will need to refresh the form page if you get an error message (as a new image must be created). Simply pressing &quot;back&quot; on your browser will not be enough. You may wish to tell your visitors in your error messages.<br />
<br />
Also, the form will automatically clear itself in some browsers when refreshed for a new image. Please be aware of this if you expect long messages to be sent through your form.</p>
</li>
</ol>
<h2>Version History</h2>
<p><strong>Version 2.2.1</strong></p>
<ul>
<li>Removed name and email address from mail headers in order to increase security and allow sending of mail from strict servers</li>
<li>Cleared up code, better instructions</li>
</ul>
<p><strong>Version 2.2</strong></p>
<ul>
<li>Changed error handling to a function for easier integration</li>
<li>General code optimisation</li>
<li>Improved header injection protection and captcha</li>
<li>Fixed cleanup function so that entities are no longer escaped in e-mails received</li>
</ul>
<p><strong>Version 2.1.2:</strong></p>
<ul>
<li>Added a few security fixes</li>
<li>E-mail address is now not required</li>
</ul>
<p><strong>Version 2.1.1:</strong></p>
<ul>
<li>A couple of bug fixes regarding image verification</li>
</ul>
<p><strong>Version 2.1:</strong></p>
<ul>
<li>Added image verification and further <acronym title="HyperText Mark-up Language">HTML</acronym> validation to example form</li>
<li>Renamed form from form.html to form.php</li>
</ul>
<p><strong>Version 2.0:</strong></p>
<ul>
<li>Added spam protection measures</li>
<li>Changed the name of the script from email.php to nlphpmail.php - hopefully spammers won&#8217;t be able to find it as easily!</li>
<li>Fully compatible with <code>register_globals</code> disabled</li>
<li>Better e-mail verification - protects against spammers using your form to spam others</li>
<li>form.html is now <acronym title="eXtensible HyperText Mark-up Language">XHTML</acronym> 1.1 compliant</li>
<li>Script sanitizes input properly and is much harder to hack</li>
<li>Useable with multiple <acronym title="HyperText Mark-up Language">HTML</acronym> forms! (Yay!)</li>
</ul>
<p><strong>Version 1.5:</strong></p>
<ul>
<li>Changed the script to a zip file download instead of an online tutorial</li>
<li>Added an example <acronym title="HyperText Mark-up Language">HTML</acronym> form</li>
<li>Added a link back button</li>
<li>Changed the setup of the script, with the variables at the top of the file so it&#8217;s easier to edit and set up.</li>
</ul>
<h2>The ReadMe file</h2>
<div style="font-family: monospace; font-size: small; height: 200px; margin-left: 10px; overflow: auto; border: 1px solid #854f5c; background-color: #fff;">
<p>
~~~~~~~~~~~~~~~~~~~~~~<br />##<br />## NL-PHPMail 2.2.1 ##<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;##<br />
~~~~~~~~~~~~~~~~~~~~~~</p>
<p>
PLEASE BE SURE TO READ ALL OF THIS FILE BEFORE USING NL-PHPMail.
</p>
<p>
===================================================================<br />
</p>
<p>NL-PHPMail: Copyright &copy; 2002-2005 Sasha (http://nothing-less.net), and 2005-2008 Amelie M.
</p>
<p>
You may:<br />
<br />
- Use and edit/modify NL-PHPMail however you like, AS LONG AS A LINK BACK TO codegrrl.com IS PROVIDED.<br />
<br />
- Tell other people about it<br />
<br />
- Ask for help regarding this script at any time
</p>
<p>
You may not:<br />
<br />
- Redistribute this script in any way, shape or form without written permission from its creator, whether it has been modified or not</p>
<p>
- Claim ownership of this script, however much you have modified it<br />
<br />
- Earn money by installing, customising, modifying or troubleshooting this script for other people<br />
<br />
- Hold Sasha, Amelie or anyone at CodeGrrl.com responsible for anything that arises from its use
</p>
<p>
Amelie, Not-Noticeably.net<br />
<br />
===================================================================
</p>
<p>
INTRODUCTION<br />
<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>
NL-PHPMail is a simple form-mailing script which uses PHP&#8217;s mail() function to send the contents of a web form to your email address.
</p>
<p>
CHANGELOG<br />
<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;
</p>
<p>
Version 2.2.1:
</p>
<p>
	- Removed name and email address from mail headers in order to increase security and allow sending of mail from strict servers</p>
<p>
	- Cleared up code, better instructions
</p>
<p>
Version 2.2:
</p>
<p>
	-Changed error handling to a function for easier integration<br />
<br />
	-General code optimisation<br />
<br />
	-Improved header injection protection and captcha<br />
</p>
<p>	-Fixed cleanup function so that entities are no longer escaped in emails received
</p>
<p>
Version 2.1.2:
</p>
<p>
	-Added a few security fixes<br />
<br />
	-email address is now not required
</p>
<p>
Version 2.1.1:
</p>
<p>	-A couple of bug fixes regarding image verification
</p>
<p>
Version 2.1:
</p>
<p>
	-Added image verification and further HTML validation to example form<br />
<br />
	-Renamed form from form.html to form.php
</p>
<p>
Version 2.0:
</p>
<p>	-Added spam protection measures<br />
<br />
	-Changed the name of the script from email.php to nlphpmail.php - hopefully spammers won&#8217;t be able to find it as easily!<br />
<br />
	-Fully compatible with register_globals disabled<br />
<br />
	-Better email verification - protects against spammers using your form to spam others<br />
<br />
	-form.html is now XHTML 1.1 compliant<br />
<br />
	-Script sanitizes input properly and is much harder to hack</p>
<p>
	-Useable with multiple HTML forms! (Yay!)
</p>
<p>
Version 1.5:
</p>
<p>
	-Changed the script to a zip file download instead of an online tutorial<br />
<br />
	-Added an example HTML form<br />
<br />
	-Added a link back button<br />
</p>
<p>	-Changed the setup of the script, with the variables at the top of the file so it&#8217;s easier to edit and set up.
</p>
<p>
REQUIREMENTS<br />
<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;
</p>
<p>
To use NL-PHPMail, you need a server with PHP 4.2 or higher which allows the use of PHP&#8217;s mail() function (not all hosts allow this - please check with your host before using the script. To use image verification, your PHP installation will need the GD image libraries. Please ask your host if you are unsure if this is available on your server.
</p>
<p>
FILES</p>
<p>
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;
</p>
<p>
Inside this zip file, you should have the following files:
</p>
<p>
- nlphpmail.php<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp; This is the main script file and the only one you need to edit<br />
<br />
- captcha.php<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp; This file contains the CAPTCHA configuration. Do not edit this.<br />
</p>
<p>- form.php<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp; An example form that you can edit<br />
<br />
- verify.jpg<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp; The CAPTCHA image<br />
<br />
- phpmail.gif<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp; A link button, should you require it.<br />
<br />
- README.txt<br />
</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp; This file <img src='http://codegrrl.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
</p>
<p>
HOW TO INSTALL AND USE THE SCRIPT<br />
<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;
</p>
<p>
1. Open up form.php and edit it to fit in with your website. Or alternatively, create your own HTML form (as long as it has a .php extension) and have it point to nlphpmail.php in the &lt;form action=&quot;&quot;&gt; tag, (see the example in form.php if you are not sure how to do this).
</p>
<p>
Make sure you change this value to match the subject of the email you want to be sent:</p>
<p>
	&lt;input type=&quot;hidden&quot; name=&quot;subject&quot; value=&quot;SUBJECT HERE&quot; /&gt;
</p>
<p>
If you are creating your own form page, remember to add this or your email will have no subject (which some email clients identify as spam, and some servers refuse to send).</p>
<p>
2. Open nlphpmail.php in a text editor such as Notepad and read through the file - instructions are given where edits are required.
</p>
<p>
3. Upload the form, captcha.php, verify.jpg and nlphpmail.php to your webserver. They can be in any folder you wish, as long as they are in the same folder. If you upload nlphpmail.php into a different folder from the form, make sure you change the path in the &lt;form action=&quot;&quot;&gt; part as well.<br />
<br />
IMPORTANT: YOU WILL NEED TO CHMOD verify.jpg TO 666 FOR THE SCRIPT TO WORK PROPERLY!
</p>
<p>
4. If you are writing your own form page, please make sure that you &quot;name&quot; your submit or send button &quot;submit&quot;. If you do not do this, your form will not work. This is part of the spam protection and makes sure that your form was actually filled in from your page.</p>
<p>
Example:<br />
<br />
	&lt;input type=&quot;submit&quot; value=&quot;Send form&quot; name=&quot;submit&quot; /&gt;
</p>
<p>
See the name=&quot;submit&quot; part? That part MUST be included for the script to work.
</p>
<p>
Another thing you must do if you are creating your own form is to include captcha.php (you only need to do this if you require the use of image verification - you should set this preference in nlphpmail.php).
</p>
<p>
To do this:
</p>
<p>
a) At the VERY START of your form page (which must have a .php extension for this to work), before any HTML or other PHP code, add this line:
</p>
<p>
	&lt;?php include &#8216;captcha.php&#8217;; ?&gt;</p>
<p>
This code must appear before any content on your page, and there must be no whitespace above it. If you aren&#8217;t making your own form, make sure that when editing form.php, you start editing beneath that code.
</p>
<p>
b) Where you want the image verification to show up, use this code:
</p>
<p>
	&lt;label for=&quot;verifyimage&quot;&gt;Enter the letters and numbers you see on this image into the box below:&lt;/label&gt;&lt;br /&gt;<br />
</p>
<p>	&lt;img src=&quot;verify.jpg&quot; alt=&quot;CAPTCHA Image&quot; /&gt;&lt;br /&gt;<br />
<br />
	&lt;input type=&quot;text&quot; name=&quot;verifyimage&quot; id=&quot;verifyimage&quot; maxlength=&quot;5&quot; /&gt;</p>
<p>
You MUST use the &lt;input&gt; tag as written above. If you don&#8217;t, you will be unable to send the form. Feel free to change the text and placement of the image around (you cannot change the name of the image, so you must make sure the source of the image is &quot;verify.jpg&quot; and nothing else).
</p>
<p>
Please remember that not everyone will be able to use your form if you are using image verification. A lot of people browse with images turned off, or use screen readers which can&#8217;t decode the image, or simply can&#8217;t see the letters and numbers on the image. Make sure that you have an alternative method for such users to contact you.
</p>
<p>If you aren&#8217;t using image verification and are not making your own form, please make sure to delete the parts of code as specified in form.php (there are two parts to delete, make sure you delete both of them). You can then rename your form to .html if you so wish.
</p>
<p>
Also, make sure you include the subject line in your form as detailed in step 1 above.
</p>
<p>
Please note: If you are using image verification, you will need to refresh the form page if you get an error message (as a new image must be created). Simply pressing &quot;back&quot; on your browser will not be enough. You may wish to tell your visitors in your error messages.<br />
<br />
Also, the form will automatically clear itself in some browsers when refreshed for a new image. Please be aware of this if you expect long messages to be sent through your form.
</p>
<p>
ADDITIONAL NOTES</p>
<p>
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;
</p>
<p>
This version of NL-PHPMail is compatible with multiple forms. All you have to do is to make another form page and point it to this script, remembering to change the subject field in the HTML. Your form will be sent to the same email address as you specified for the script&#8217;s original use, and will have the same required fields which means you must specify those fields in all forms pointed to this script. If you don&#8217;t want this to happen, you will need to upload another copy of the script and point your new form there.
</p>
<p>
CREDITS<br />
<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;
</p>
<p>
Original script created by Sasha (http://nothing-less.net/)
</p>
<p>
NL-PHPMail was rewritten from v2.0+ by Amelie of Not-Noticeably.net for CodeGrrl.com.</p>
<p>Email verification code from Zend.com and CodeGrrl.com Forums, posted by Jenny F aka OrangeSkidoo.<br />
<br />
Header injection protection uses part of a tutorial from Tutorialtastic (http://www.tutorialtastic.co.uk/) by Jem T.<br />
<br />
Image verification adapted from a tutorial by John, available from http://www.phpnoise.com/tutorials/1/1.</p>
<p>PROBLEMS?<br />
<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>If you run into any problems with NL-PHPMail, please visit the CodeGrrl FAQ (http://codegrrl.com/faq) to see if your problem has already been addressed. If it hasn&#8217;t, please visit the forums (http://codegrrl.com/forums/) and search there. You should only start a new topic if you do not find ANY of the solutions helpful.</p>
<p>We respectfully ask that you DO NOT email Sasha, Vixx or any other CG staff members personally about problems with this or any other of our scripts. Any such requests will be ignored.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://codegrrl.com/scripts/nlphpmail/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
