<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[PHP Forums - [TUTORIAL] How to make a simple contact form]]></title>
	<link rel="self" href="http://phpforums.org/feed-atom-topic16.xml"/>
	<updated>2009-12-17T23:09:17Z</updated>
	<generator>PunBB</generator>
	<id>http://phpforums.org/topic16-tutorial-how-to-make-a-simple-contact-form.html</id>
		<entry>
			<title type="html"><![CDATA[Re: [TUTORIAL] How to make a simple contact form]]></title>
			<link rel="alternate" href="http://phpforums.org/post54.html#p54"/>
			<content type="html"><![CDATA[<p>Well it just looks like a form no special design its just the fields</p><p>-John</p>]]></content>
			<author>
				<name><![CDATA[jaydesigns]]></name>
				<uri>http://phpforums.org/user8.html</uri>
			</author>
			<updated>2009-12-17T23:09:17Z</updated>
			<id>http://phpforums.org/post54.html#p54</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [TUTORIAL] How to make a simple contact form]]></title>
			<link rel="alternate" href="http://phpforums.org/post49.html#p49"/>
			<content type="html"><![CDATA[<p>I wish it were possible to see screenshots of what these samples look like, or maybe my problem is just that I still need to learn a lot of php basics.&nbsp; It&#039;s probably me.</p>]]></content>
			<author>
				<name><![CDATA[Orrymain]]></name>
				<uri>http://phpforums.org/user16.html</uri>
			</author>
			<updated>2009-11-20T01:39:53Z</updated>
			<id>http://phpforums.org/post49.html#p49</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[[TUTORIAL] How to make a simple contact form]]></title>
			<link rel="alternate" href="http://phpforums.org/post27.html#p27"/>
			<content type="html"><![CDATA[<p>Hello,</p><p>In this tutorial you will learn how to make a simple contact form:</p><div class="codebox"><pre><code>&lt;?php
if(isset($_POST[&#039;submit&#039;])) {
 

$to = &quot;you@you.com&quot;;
$subject = &quot;Form Tutorial&quot;;
$name_field = $_POST[&#039;name&#039;];
$email_field = $_POST[&#039;email&#039;];
$message = $_POST[&#039;message&#039;];
$option = $_POST[&#039;radio&#039;];
$dropdown = $_POST[&#039;drop_down&#039;];
 
foreach($_POST[&#039;check&#039;] as $value) {

$check_msg .= &quot;Checked: $value\n&quot;;

}
 
$body = &quot;From: $name_field\n E-Mail: $email_field\n $check_msg Option: $option\n Drop-Down: $dropdown\n Message:\n $message\n&quot;;
 
echo &quot;Data has been submitted to $to!&quot;;
mail($to, $subject, $body);
 

} else {
?&gt;

&lt;form method=&quot;POST&quot; action=&quot;mailer.php&quot;&gt;
Name:
&lt;input type=&quot;text&quot; name=&quot;name&quot; size=&quot;19&quot;&gt;&lt;br&gt;
&lt;br&gt;
E-Mail:
&lt;input type=&quot;text&quot; name=&quot;email&quot; size=&quot;19&quot;&gt;&lt;br&gt;
&lt;br&gt;
 
&lt;input type=&quot;checkbox&quot; name=&quot;check[]&quot; value=&quot;blue_color&quot;&gt; Blue&lt;br&gt;
&lt;input type=&quot;checkbox&quot; name=&quot;check[]&quot; value=&quot;green_color&quot;&gt; Green&lt;br&gt;
&lt;input type=&quot;checkbox&quot; name=&quot;check[]&quot; value=&quot;orange_color&quot;&gt; Orange&lt;br&gt;
&lt;br&gt;
&lt;input type=&quot;radio&quot; value=&quot;yes&quot; name=&quot;radio&quot;&gt; YES&lt;br&gt;
&lt;input type=&quot;radio&quot; value=&quot;no&quot; name=&quot;radio&quot;&gt; NO
&lt;br&gt;
&lt;br&gt;
 
&lt;select size=&quot;1&quot; name=&quot;drop_down&quot;&gt;
&lt;option&gt;php&lt;/option&gt;
&lt;option&gt;xml&lt;/option&gt;
&lt;option&gt;asp&lt;/option&gt;
&lt;option&gt;jsp&lt;/option&gt;
&lt;/select&gt;&lt;br&gt;
&lt;br&gt;
Message:&lt;br&gt;
&lt;textarea rows=&quot;9&quot; name=&quot;message&quot; cols=&quot;30&quot;&gt;&lt;/textarea&gt;&lt;br&gt;
&lt;br&gt;
&lt;input type=&quot;submit&quot; value=&quot;Submit&quot; name=&quot;submit&quot;&gt;
&lt;/form&gt;

&lt;?php
}
?&gt;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[jaydesigns]]></name>
				<uri>http://phpforums.org/user8.html</uri>
			</author>
			<updated>2009-10-10T01:18:58Z</updated>
			<id>http://phpforums.org/post27.html#p27</id>
		</entry>
</feed>
