<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" > <channel><title>Comments on: How To Write A PHP Contact Form</title> <atom:link href="http://www.velvetblues.com/web-development-blog/how-to-write-a-php-contact-form/feed/" rel="self" type="application/rss+xml" /><link>http://www.velvetblues.com/web-development-blog/how-to-write-a-php-contact-form/</link> <description>Velvet Blues offers a wide variety of website-related services such as: complete websites, eCommerce, design, XHTML/CSS slicing, search engine optimization, and content management with custom or open source software such as WordPress, Joomla, and Drupal. Take a look at our portfolio and see for yourself.</description> <lastBuildDate>Thu, 29 Dec 2011 17:15:49 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.2.1</generator> <item><title>By: SEO Maryland</title><link>http://www.velvetblues.com/web-development-blog/how-to-write-a-php-contact-form/#comment-15483</link> <dc:creator>SEO Maryland</dc:creator> <pubDate>Tue, 15 Nov 2011 20:55:00 +0000</pubDate> <guid isPermaLink="false">http://www.velvetblues.com/?p=301#comment-15483</guid> <description>As I am developing my site I needed to make a contact script for my page, and this is definitely a huge help! Thank you!</description> <content:encoded><![CDATA[<p>As I am developing my site I needed to make a contact script for my page, and this is definitely a huge help! Thank you!</p> ]]></content:encoded> </item> <item><title>By: RAGE!!!!!</title><link>http://www.velvetblues.com/web-development-blog/how-to-write-a-php-contact-form/#comment-15473</link> <dc:creator>RAGE!!!!!</dc:creator> <pubDate>Fri, 11 Nov 2011 17:45:22 +0000</pubDate> <guid isPermaLink="false">http://www.velvetblues.com/?p=301#comment-15473</guid> <description>I have to ask why you automatically assume people know where this sendmail stuff is, I am working with WAMP and I am a newbie but I am trying to crash course PHP. I completely ran the script without an error, but guess what? I have no idea how to actually get the email. Not even the first thing.Couldn&#039;t you have at least said &quot;Gee, for those who aren&#039;t ZEUS at programming and aren&#039;t born with inherent GODLIKE programming knowledge, there is this thing called sendmail and it has to be specially configured knowing quantum physics!&quot; I am going to quit programming because of this halfway written crap and go clean cars, or maybe burn myself.. thanks a lot.</description> <content:encoded><![CDATA[<p>I have to ask why you automatically assume people know where this sendmail stuff is, I am working with WAMP and I am a newbie but I am trying to crash course <acronym title="Pre-Hypertext Processing">PHP</acronym>. I completely ran the script without an error, but guess what? I have no idea how to actually get the email. Not even the first thing.</p><p>Couldn&#8217;t you have at least said &#8220;Gee, for those who aren&#8217;t ZEUS at programming and aren&#8217;t born with inherent GODLIKE programming knowledge, there is this thing called sendmail and it has to be specially configured knowing quantum physics!&#8221; I am going to quit programming because of this halfway written crap and go clean cars, or maybe burn myself.. thanks a lot.</p> ]]></content:encoded> </item> <item><title>By: Malar</title><link>http://www.velvetblues.com/web-development-blog/how-to-write-a-php-contact-form/#comment-6783</link> <dc:creator>Malar</dc:creator> <pubDate>Wed, 29 Jun 2011 03:58:53 +0000</pubDate> <guid isPermaLink="false">http://www.velvetblues.com/?p=301#comment-6783</guid> <description>Hi I am using this contact form .But Could you please let me know how to connect to the mail server so that ie sends a actuall email.Regards Malar</description> <content:encoded><![CDATA[<p>Hi<br /> I am using this contact form .But Could you please let me know how to connect to the mail server so that ie sends a actuall email.</p><p>Regards<br /> Malar</p> ]]></content:encoded> </item> <item><title>By: David</title><link>http://www.velvetblues.com/web-development-blog/how-to-write-a-php-contact-form/#comment-5880</link> <dc:creator>David</dc:creator> <pubDate>Thu, 23 Dec 2010 05:53:14 +0000</pubDate> <guid isPermaLink="false">http://www.velvetblues.com/?p=301#comment-5880</guid> <description>I tried using your script and I got an error saying that ergeli is depracated and undefined variable on line 11. I&#039;m trying to append this to a site that i&#039;m working on.</description> <content:encoded><![CDATA[<p>I tried using your script and I got an error saying that ergeli is depracated and undefined variable on line 11. I&#8217;m trying to append this to a site that i&#8217;m working on.</p> ]]></content:encoded> </item> <item><title>By: Dave</title><link>http://www.velvetblues.com/web-development-blog/how-to-write-a-php-contact-form/#comment-5879</link> <dc:creator>Dave</dc:creator> <pubDate>Thu, 23 Dec 2010 04:02:48 +0000</pubDate> <guid isPermaLink="false">http://www.velvetblues.com/?p=301#comment-5879</guid> <description>I tried the code and I&#039;m getting an error that says that eregi is deprecated. It&#039;s also saying Notice: Undefined index: message in C:\wamp\www\temporary\contact.php on line 11 I&#039;m seeing this on the localhost, my website doesn&#039;t support php yet.</description> <content:encoded><![CDATA[<p>I tried the code and I&#8217;m getting an error that says that eregi is deprecated. It&#8217;s also saying Notice: Undefined index: message in C:\wamp\www\temporary\contact.php on line 11 I&#8217;m seeing this on the localhost, my website doesn&#8217;t support php yet.</p> ]]></content:encoded> </item> <item><title>By: Velvet Blues</title><link>http://www.velvetblues.com/web-development-blog/how-to-write-a-php-contact-form/#comment-5836</link> <dc:creator>Velvet Blues</dc:creator> <pubDate>Thu, 09 Dec 2010 00:14:42 +0000</pubDate> <guid isPermaLink="false">http://www.velvetblues.com/?p=301#comment-5836</guid> <description>@webhostingruching: Perhaps your localhost does not have a working mail server. That is pretty common. What software are you using?</description> <content:encoded><![CDATA[<p>@webhostingruching: Perhaps your localhost does not have a working mail server. That is pretty common. What software are you using?</p> ]]></content:encoded> </item> <item><title>By: webhostingruchi</title><link>http://www.velvetblues.com/web-development-blog/how-to-write-a-php-contact-form/#comment-5823</link> <dc:creator>webhostingruchi</dc:creator> <pubDate>Sat, 04 Dec 2010 11:32:14 +0000</pubDate> <guid isPermaLink="false">http://www.velvetblues.com/?p=301#comment-5823</guid> <description>I’m using a local host. I tried and tested it but my yahoo account is not receiving anything. I changed the email address provided in sendmail.php to my own email but it seems like is not working on my side. What should I do? Please help.</description> <content:encoded><![CDATA[<p>I’m using a local host. I tried and tested it but my yahoo account is not receiving anything.<br /> I changed the email address provided in sendmail.php to my own email but it seems like is not working on my side.<br /> What should I do?<br /> Please help.</p> ]]></content:encoded> </item> <item><title>By: bita</title><link>http://www.velvetblues.com/web-development-blog/how-to-write-a-php-contact-form/#comment-4622</link> <dc:creator>bita</dc:creator> <pubDate>Thu, 24 Sep 2009 14:15:12 +0000</pubDate> <guid isPermaLink="false">http://www.velvetblues.com/?p=301#comment-4622</guid> <description>Very simple and effective php form.great write up</description> <content:encoded><![CDATA[<p>Very simple and effective php form.</p><p>great write up</p> ]]></content:encoded> </item> <item><title>By: affiliate funnel</title><link>http://www.velvetblues.com/web-development-blog/how-to-write-a-php-contact-form/#comment-3803</link> <dc:creator>affiliate funnel</dc:creator> <pubDate>Fri, 20 Mar 2009 22:38:48 +0000</pubDate> <guid isPermaLink="false">http://www.velvetblues.com/?p=301#comment-3803</guid> <description>Great post Velvet.Very simple and effective php form.ThanksRob</description> <content:encoded><![CDATA[<p>Great post Velvet.</p><p>Very simple and effective php form.</p><p>Thanks</p><p>Rob</p> ]]></content:encoded> </item> <item><title>By: Velvet Blues</title><link>http://www.velvetblues.com/web-development-blog/how-to-write-a-php-contact-form/#comment-1219</link> <dc:creator>Velvet Blues</dc:creator> <pubDate>Wed, 10 Dec 2008 06:06:23 +0000</pubDate> <guid isPermaLink="false">http://www.velvetblues.com/?p=301#comment-1219</guid> <description>Depending on what features you&#039;d want, it will most likely be a bit more complex than this script.But the simplest possible implementation would be one where you just change the recipient email address and have it point to a user-supplied email address for their friend. And then you could have a standard message that is sent to all &#039;friends&#039;...</description> <content:encoded><![CDATA[<p>Depending on what features you&#8217;d want, it will most likely be a bit more complex than this script.</p><p>But the simplest possible implementation would be one where you just change the recipient email address and have it point to a user-supplied email address for their friend. And then you could have a standard message that is sent to all &#8216;friends&#8217;&#8230;</p> ]]></content:encoded> </item> <item><title>By: carl</title><link>http://www.velvetblues.com/web-development-blog/how-to-write-a-php-contact-form/#comment-1212</link> <dc:creator>carl</dc:creator> <pubDate>Tue, 09 Dec 2008 22:50:33 +0000</pubDate> <guid isPermaLink="false">http://www.velvetblues.com/?p=301#comment-1212</guid> <description>I did that, most of them do not work property, are cumbersome, or lack features.  I love the contact form script and how it works in its own space, no extra windows, etc.  Any idea what would have to be modified to make it send data like a refer a friend script?  thanks.</description> <content:encoded><![CDATA[<p>I did that, most of them do not work property, are cumbersome, or lack features.  I love the contact form script and how it works in its own space, no extra windows, etc.  Any idea what would have to be modified to make it send data like a refer a friend script?  thanks.</p> ]]></content:encoded> </item> <item><title>By: Velvet Blues</title><link>http://www.velvetblues.com/web-development-blog/how-to-write-a-php-contact-form/#comment-1203</link> <dc:creator>Velvet Blues</dc:creator> <pubDate>Tue, 09 Dec 2008 13:10:24 +0000</pubDate> <guid isPermaLink="false">http://www.velvetblues.com/?p=301#comment-1203</guid> <description>Hi Carl, no I don&#039;t have a &quot;Tell A Friend&quot; script that I can release. But there are likely tons of them floating around the internet. Google &quot;&lt;i&gt;tell a friend php script&lt;/i&gt;&quot;, and you should retrieve some websites which have free samples available.</description> <content:encoded><![CDATA[<p>Hi Carl, no I don&#8217;t have a &#8220;Tell A Friend&#8221; script that I can release. But there are likely tons of them floating around the internet. Google &#8220;<i>tell a friend php script</i>&#8220;, and you should retrieve some websites which have free samples available.</p> ]]></content:encoded> </item> <item><title>By: carl</title><link>http://www.velvetblues.com/web-development-blog/how-to-write-a-php-contact-form/#comment-1198</link> <dc:creator>carl</dc:creator> <pubDate>Tue, 09 Dec 2008 04:46:38 +0000</pubDate> <guid isPermaLink="false">http://www.velvetblues.com/?p=301#comment-1198</guid> <description>Do you have any code samples lying around for a &quot;Tell A Friend&quot; script that behaves in the same manner as your contact form script?</description> <content:encoded><![CDATA[<p>Do you have any code samples lying around for a &#8220;Tell A Friend&#8221; script that behaves in the same manner as your contact form script?</p> ]]></content:encoded> </item> <item><title>By: Velvet Blues</title><link>http://www.velvetblues.com/web-development-blog/how-to-write-a-php-contact-form/#comment-1195</link> <dc:creator>Velvet Blues</dc:creator> <pubDate>Tue, 09 Dec 2008 03:03:26 +0000</pubDate> <guid isPermaLink="false">http://www.velvetblues.com/?p=301#comment-1195</guid> <description>Thanks Carl, I have added the proper code to the end of the article.</description> <content:encoded><![CDATA[<p>Thanks Carl, I have added the proper code to the end of the article.</p> ]]></content:encoded> </item> <item><title>By: carl</title><link>http://www.velvetblues.com/web-development-blog/how-to-write-a-php-contact-form/#comment-1172</link> <dc:creator>carl</dc:creator> <pubDate>Mon, 08 Dec 2008 11:11:42 +0000</pubDate> <guid isPermaLink="false">http://www.velvetblues.com/?p=301#comment-1172</guid> <description>i sent you an email with the proper code</description> <content:encoded><![CDATA[<p>i sent you an email with the proper code</p> ]]></content:encoded> </item> <item><title>By: carl</title><link>http://www.velvetblues.com/web-development-blog/how-to-write-a-php-contact-form/#comment-1160</link> <dc:creator>carl</dc:creator> <pubDate>Sun, 07 Dec 2008 05:23:41 +0000</pubDate> <guid isPermaLink="false">http://www.velvetblues.com/?p=301#comment-1160</guid> <description>This is not showing up correctly in my post, email me and I will give you the correct data and you can add it, webmaster, thanks.</description> <content:encoded><![CDATA[<p>This is not showing up correctly in my post, email me and I will give you the correct data and you can add it, webmaster, thanks.</p> ]]></content:encoded> </item> <item><title>By: carl</title><link>http://www.velvetblues.com/web-development-blog/how-to-write-a-php-contact-form/#comment-1158</link> <dc:creator>carl</dc:creator> <pubDate>Sun, 07 Dec 2008 05:22:32 +0000</pubDate> <guid isPermaLink="false">http://www.velvetblues.com/?p=301#comment-1158</guid> <description>I truly appreciate this script and I have solved the Yahoo! Server issue.  I have detailed this below.In order to get this script to work 100% perfectly with Yahoo! Servers you need to change only a single line of code.  This is the original line you need to modify:$headers = &quot;From: $name \n&quot;;The modified version should be as follows:$headers = &quot;From: \r\n&quot;;The E-mail you actually receive will appear as being sent from Your Email address.  To make this something else, Modify the code in this manner:$headers = &quot;From: FROM NAME \r\n&quot;;Thanks.</description> <content:encoded><![CDATA[<p>I truly appreciate this script and I have solved the Yahoo! Server issue.  I have detailed this below.</p><p>In order to get this script to work 100% perfectly with Yahoo! Servers you need to change only a single line of code.  This is the original line you need to modify:</p><p>$headers = &#8220;From: $name \n&#8221;;</p><p>The modified version should be as follows:</p><p>$headers = &#8220;From: \r\n&#8221;;</p><p>The E-mail you actually receive will appear as being sent from Your Email address.  To make this something else, Modify the code in this manner:</p><p>$headers = &#8220;From: FROM NAME \r\n&#8221;;</p><p>Thanks.</p> ]]></content:encoded> </item> <item><title>By: carl</title><link>http://www.velvetblues.com/web-development-blog/how-to-write-a-php-contact-form/#comment-1120</link> <dc:creator>carl</dc:creator> <pubDate>Thu, 04 Dec 2008 01:44:37 +0000</pubDate> <guid isPermaLink="false">http://www.velvetblues.com/?p=301#comment-1120</guid> <description>Thanks, I will consult their documentation and their people.  I am using the email thats registered and I have done the PHP setup, its just not working, I thought maybe you knew of a workaround.  Thanks.</description> <content:encoded><![CDATA[<p>Thanks, I will consult their documentation and their people.  I am using the email thats registered and I have done the <acronym title="Pre-Hypertext Processing">PHP</acronym> setup, its just not working, I thought maybe you knew of a workaround.  Thanks.</p> ]]></content:encoded> </item> <item><title>By: Velvet Blues</title><link>http://www.velvetblues.com/web-development-blog/how-to-write-a-php-contact-form/#comment-1119</link> <dc:creator>Velvet Blues</dc:creator> <pubDate>Thu, 04 Dec 2008 01:40:46 +0000</pubDate> <guid isPermaLink="false">http://www.velvetblues.com/?p=301#comment-1119</guid> <description>Yahoo is one of those restrictive web hosts. You will need to consult their documentation, but I am almost positive that you have to (1) use an email address which is set up via Yahoo for your domain, and (2) set it up under the special email &#039;PHP Mail Setup&#039; options, as a valid address from which mail can be &#039;sent&#039;...I haven&#039;t done too much work on Yahoo hosting, so I probably can&#039;t be of any additional help in this regard.Good luck!</description> <content:encoded><![CDATA[<p>Yahoo is one of those restrictive web hosts. You will need to consult their documentation, but I am almost positive that you have to (1) use an email address which is set up via Yahoo for your domain, and (2) set it up under the special email &#8216;<acronym title="Pre-Hypertext Processing">PHP</acronym> Mail Setup&#8217; options, as a valid address from which mail can be &#8216;sent&#8217;&#8230;</p><p>I haven&#8217;t done too much work on Yahoo hosting, so I probably can&#8217;t be of any additional help in this regard.</p><p>Good luck!</p> ]]></content:encoded> </item> <item><title>By: carl</title><link>http://www.velvetblues.com/web-development-blog/how-to-write-a-php-contact-form/#comment-1118</link> <dc:creator>carl</dc:creator> <pubDate>Thu, 04 Dec 2008 01:33:23 +0000</pubDate> <guid isPermaLink="false">http://www.velvetblues.com/?p=301#comment-1118</guid> <description>You have been a big help, all of these issues are now fixed.  I am having an issue though.  You spoke of another way to have the form send the email and I may need you to elaborate on that.  I use Yahoo! for my hosting.  For some reason, if I use my e-mail address as the address in the form then the mail is sent to me, if I use any other email address...NOTHING!</description> <content:encoded><![CDATA[<p>You have been a big help, all of these issues are now fixed.  I am having an issue though.  You spoke of another way to have the form send the email and I may need you to elaborate on that.  I use Yahoo! for my hosting.  For some reason, if I use my e-mail address as the address in the form then the mail is sent to me, if I use any other email address&#8230;NOTHING!</p> ]]></content:encoded> </item> <item><title>By: Velvet Blues</title><link>http://www.velvetblues.com/web-development-blog/how-to-write-a-php-contact-form/#comment-1117</link> <dc:creator>Velvet Blues</dc:creator> <pubDate>Thu, 04 Dec 2008 01:13:10 +0000</pubDate> <guid isPermaLink="false">http://www.velvetblues.com/?p=301#comment-1117</guid> <description>&lt;p&gt;To fix this, you&#039;d just edit the variable. Using the example that I included in my last reply, you could achieve the following output:&lt;/p&gt; &lt;p&gt;Gender: Male&lt;br/&gt;Message: Some message&lt;/p&gt; &lt;p&gt;using this code:&lt;/p&gt; &lt;p&gt;&lt;code&gt;$message = &quot; Gender: &quot;.$gender.&quot;\n Message: &quot;.$message;&lt;/code&gt;&lt;/p&gt; &lt;p&gt;or, simpler:&lt;/p&gt; &lt;p&gt;&lt;code&gt;$message = &quot; Gender: $gender \n Message: $message&quot;;&lt;/code&gt;&lt;/p&gt;</description> <content:encoded><![CDATA[<p>To fix this, you&#8217;d just edit the variable. Using the example that I included in my last reply, you could achieve the following output:</p><p>Gender: Male<br />Message: Some message</p><p>using this code:</p><p><code>$message = &quot; Gender: &quot;.$gender.&quot;\n Message: &quot;.$message;</code></p><p>or, simpler:</p><p><code>$message = &quot; Gender: $gender \n Message: $message&quot;;</code></p> ]]></content:encoded> </item> <item><title>By: carl</title><link>http://www.velvetblues.com/web-development-blog/how-to-write-a-php-contact-form/#comment-1116</link> <dc:creator>carl</dc:creator> <pubDate>Thu, 04 Dec 2008 01:06:27 +0000</pubDate> <guid isPermaLink="false">http://www.velvetblues.com/?p=301#comment-1116</guid> <description>I have all that working, last question, and thanks for your help.....In the e-mail I receive from the form the data entered and selected by the user are included, but not the names of the fields they filled out.  Example:Carl Martin carl@martin.com Test This is a test.SHOULD BEName: Carl Martin E-mail: carl@martin.com Subject: Test Message:  This is a test.</description> <content:encoded><![CDATA[<p>I have all that working, last question, and thanks for your help&#8230;..</p><p>In the e-mail I receive from the form the data entered and selected by the user are included, but not the names of the fields they filled out.  Example:</p><p>Carl Martin<br /> carl@martin.com<br /> Test<br /> This is a test.</p><p>SHOULD BE</p><p>Name: Carl Martin<br /> E-mail: carl@martin.com<br /> Subject: Test<br /> Message:  This is a test.</p> ]]></content:encoded> </item> <item><title>By: Velvet Blues</title><link>http://www.velvetblues.com/web-development-blog/how-to-write-a-php-contact-form/#comment-1114</link> <dc:creator>Velvet Blues</dc:creator> <pubDate>Wed, 03 Dec 2008 20:25:07 +0000</pubDate> <guid isPermaLink="false">http://www.velvetblues.com/?p=301#comment-1114</guid> <description>@Carl, you will need to go through 3 steps:1. Add that select element to the form HTML code. (ie. the HTML code that we&#039;ve shown under the first subheading)2. Update the $POST variable. (See section 1: Handling User Input). Assuming that you had a select element like the sample above, with the name &#039;gender&#039;, your added code might look something like this: &lt;code&gt;$gender   = $_POST[&#039;gender&#039;];&lt;/code&gt;3. Update the email message. As you will see, we used a single variable for the &#039;message&#039;. So we&#039;ll need to combine the variables for your additional element to include that in the message. So you will need to add another line of code after the $gender and $message lines. The code might look something like: &lt;code&gt;$message = $gender.&quot;\n&quot;.$message;&lt;/code&gt;</description> <content:encoded><![CDATA[<p>@Carl, you will need to go through 3 steps:</p><p>1. Add that select element to the form <acronym title="HyperText Markup Language">HTML</acronym> code. (ie. the <acronym title="HyperText Markup Language">HTML</acronym> code that we&#8217;ve shown under the first subheading)</p><p>2. Update the $POST variable. (See section 1: Handling User Input). Assuming that you had a select element like the sample above, with the name &#8216;gender&#8217;, your added code might look something like this:<br /> <code>$gender   = $_POST['gender'];</code></p><p>3. Update the email message. As you will see, we used a single variable for the &#8216;message&#8217;. So we&#8217;ll need to combine the variables for your additional element to include that in the message. So you will need to add another line of code after the $gender and $message lines. The code might look something like:<br /> <code>$message = $gender.&quot;\n&quot;.$message;</code></p> ]]></content:encoded> </item> <item><title>By: carl</title><link>http://www.velvetblues.com/web-development-blog/how-to-write-a-php-contact-form/#comment-1111</link> <dc:creator>carl</dc:creator> <pubDate>Wed, 03 Dec 2008 20:04:03 +0000</pubDate> <guid isPermaLink="false">http://www.velvetblues.com/?p=301#comment-1111</guid> <description>Thanks for the code, but how exactly should the other modifications be done?  Can you be a little more specific?  How do you ad the choics that will drop down?</description> <content:encoded><![CDATA[<p>Thanks for the code, but how exactly should the other modifications be done?  Can you be a little more specific?  How do you ad the choics that will drop down?</p> ]]></content:encoded> </item> <item><title>By: Velvet Blues</title><link>http://www.velvetblues.com/web-development-blog/how-to-write-a-php-contact-form/#comment-1105</link> <dc:creator>Velvet Blues</dc:creator> <pubDate>Wed, 03 Dec 2008 14:07:24 +0000</pubDate> <guid isPermaLink="false">http://www.velvetblues.com/?p=301#comment-1105</guid> <description>One user asked about adding a drop down box (or select element) to the form. This could be easily done by adding a new element or replacing an existing element with the following sample code:&lt;code&gt;&lt;select name=&quot;gender&quot;&gt;&lt;br/&gt; &lt;option&gt;female&lt;/option&gt;&lt;br/&gt; &lt;option&gt;male&lt;/option&gt;&lt;br/&gt; &lt;/select&gt;&lt;/code&gt;Then simply modify the &lt;sample&gt;$POST&lt;/sample&gt; variables at the top of the form, as well as the email message to include this variable.Be sure to edit the select options and name to something suitable for your form.</description> <content:encoded><![CDATA[<p>One user asked about adding a drop down box (or select element) to the form. This could be easily done by adding a new element or replacing an existing element with the following sample code:</p><p><code>&lt;select name=&quot;gender&quot;&gt;<br /> &lt;option&gt;female&lt;/option&gt;<br /> &lt;option&gt;male&lt;/option&gt;<br /> &lt;/select&gt;</code></p><p>Then simply modify the <sample>$POST</sample> variables at the top of the form, as well as the email message to include this variable.</p><p>Be sure to edit the select options and name to something suitable for your form.</p> ]]></content:encoded> </item> </channel> </rss>
