<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Need help on some PHP code for Forms"]]></title>
		<link>https://proxy2.de/forum/posts/list/3.php</link>
		<description><![CDATA[Latest messages posted in the topic "Need help on some PHP code for Forms"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Need help on some PHP code for Forms</title>
				<description><![CDATA[ &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"<br /> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;<br /> &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;<br /> &lt;head&gt;<br /> &lt;meta http-equiv="Content-Type"<br /> content="text/html; charset=iso-8859-1" /&gt;<br /> &lt;title&gt;Oostkerke Soccer Team&lt;/title&gt;<br /> &lt;/head&gt;<br /> &lt;body&gt;<br /> &lt;form action="Oostkerke" method="post/get"&gt;<br /> <br /> Who would you prefer as player of the year ? &lt;br/&gt;<br /> &lt;input type="checkbox" id="kevin" value="V" checked=”checked” /&gt;Kevin Degrande<br /> &lt;br/&gt;<br /> &lt;input type="checkbox" id="david" value="D" /&gt;David Duquese<br /> &lt;br/&gt;&lt;br/&gt;<br /> <br /> Who has the best technical moves on the field ? &lt;br/&gt;<br /> &lt;select id="moves" size="3"&gt;<br /> &lt;option value="david"&gt;David Duquese &lt;/option&gt;<br /> &lt;option value="kevin"&gt;kevin Degrande&lt;/option&gt;<br /> &lt;option value="k"&gt;Kurt Vandoorne&lt;/option&gt;<br /> &lt;option value="J"&gt;Jeroen Degaarne&lt;/option&gt;<br /> &lt;option value="A"&gt;Aamer Hicham&lt;/option&gt;<br /> &lt;/select&gt;<br /> &lt;br/&gt;<br /> <br /> Name: &lt;input type="text" id="name" size="30" /&gt;&lt;br /&gt;<br /> <br /> <br /> &lt;input type="submit" id="button" value="Send" /&gt;<br /> &lt;/form&gt;<br /> &lt;/body&gt;<br /> &lt;/html&gt;<br /> <br /> <br /> <br /> This is a form I wanted to write for a project about our schoolteam.<br /> They have to fill in a questionary , and then click the Send button to send me the results. How can I get them to send it to me ?<br /> <br /> I know you got to know some PHP to be able to write it , but I don't , so that's why I am asking for some help.<br /> <br /> So any help would be welcome, someone bit experienced writing the stuff I can't.<br /> <br /> Thanks a lot]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5125/18521.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5125/18521.php</link>
				<pubDate><![CDATA[Sun, 30 Oct 2005 14:08:38]]> GMT</pubDate>
				<author><![CDATA[ Robbin]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ You don't need PHP to create the form just to process the submitted data. You also need to decided if you are going to send the data using GET or POST. Get puts the data into the url whilst POST sends it differently. Also how are you intending to store the data?]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5125/18523.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5125/18523.php</link>
				<pubDate><![CDATA[Sun, 30 Oct 2005 14:31:31]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Damn<br /> <br /> I suck at this ...<br /> <br /> Is there anyone who can help me at all ?<br /> <br /> I don't know the difference between post and get , but I'd take get <br /> <br /> It's a simple site I'd make, only to be used for like 100 people or so.<br /> <br /> Would simply to be to vote who they prefer in the team , and then just send the answers to me in an email which I can put in a wordfile then.<br /> <br /> Problem is that I know nothing about these codes etc.<br /> <br /> The code I got a friend even wrote for me.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5125/18525.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5125/18525.php</link>
				<pubDate><![CDATA[Sun, 30 Oct 2005 15:15:20]]> GMT</pubDate>
				<author><![CDATA[ Robbin]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ [code]&lt;?php <br />   if &#40;!isset&#40;$_POST&#91;'submit'&#93;&#41;&#41; <br />   &#123; <br />      show_form&#40;&#41;; <br />   &#125;else&#123; <br />      email&#40;&#41;; <br />   &#125; <br /> <br /> function email&#40;&#41; <br /> &#123; <br /> <br />  $your_name  = ''; <br />  $subject    = ''; <br />  $moves      = ''; <br />  $PoY        = ''; <br />   <br /> <br />  if &#40;&#40;!isset&#40;$_POST&#91;'name'&#93;&#41;&#41;||&#40;!isset&#40;$_POST&#91;'moves'&#93;&#41;&#41;||&#40;!isset&#40;$_POST&#91;'PoY'&#93;&#41;&#41;&#41; <br />  &#123; <br />    show_form&#40;&#41;; <br />    echo &quot;&lt;script language='javascript'&gt;alert&#40;'You are missing form data. Please fill out the form completely'&#41;;&lt;/script&gt;&quot;; <br />  &#125;else&#123; <br />    //prep the email <br />    $to=&quot;me@mydomain.com&quot;; <br /> <br />    //get form data <br />    $your_name  = $_POST&#91;'name'&#93;; <br />    $subject    = &quot;Vote for player of the year&quot; <br />    $moves      = $_POST&#91;'moves'&#93;; <br />    $PoY        = $_POST&#40;&#91;'PoY'&#93;; <br /> <br />    //add the headers to create the html email <br />    $headers  = &quot;MIME-Version&#58; 1.0\n&quot;; <br />    $headers .= &quot;Content-type&#58; text/html; charset=iso-8859-1\n&quot;; <br />    $headers .= &quot;From&#58; admin&lt;no-reply@mydomain.com&gt;\nX-Mailer&#58; PHP Automated Mailer&quot;; <br /> <br />    //prep the body of the email <br />    $body=&quot;Player of the year&#58; \t$PoY\n\nBest Moves&#58;\t\t$moves&quot;; <br /> <br />    if &#40;mail&#40;$to, $subject, $body, $headers&#41;&#41;&#123; <br />      echo &quot;mail sent&quot;; <br />    &#125;else&#123; <br />      echo &quot;mail failed&quot;; <br />    &#125;//end if <br />  &#125;//end if <br /> &#125; //end function <br /> <br /> <br /> function show_form&#40;&#41; <br /> &#123; <br /> ?&gt; <br />       &lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; <br />       &quot;http&#58;//www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt; <br />       &lt;html xmlns=&quot;http&#58;//www.w3.org/1999/xhtml&quot;&gt; <br />       &lt;head&gt; <br />       &lt;meta http-equiv=&quot;Content-Type&quot; <br />       content=&quot;text/html; charset=iso-8859-1&quot; /&gt; <br />       &lt;title&gt;Oostkerke Soccer Team&lt;/title&gt; <br />       &lt;/head&gt; <br />       &lt;body&gt; <br />       &lt;form action=&quot;&lt;?php echo $_SERVER&#91;'PHP_SELF'&#93;;?&gt;&quot; method=&quot;post&quot;&gt; <br /> <br />       Who would you prefer as player of the year ? &lt;br/&gt; <br />       &lt;input type=&quot;checkbox&quot; name=&quot;PoY&quot; id=&quot;PoY&quot; value=&quot;Kevin&quot; /&gt;Kevin Degrande <br />       &lt;br/&gt; <br />       &lt;input type=&quot;checkbox&quot; name=&quot;PoY&quot; id=&quot;PoY&quot; value=&quot;David&quot; /&gt;David Duquese <br />       &lt;br/&gt;&lt;br/&gt; <br /> <br />       Who has the best technical moves on the field ? &lt;br/&gt; <br />       &lt;select name=&quot;moves&quot; id=&quot;moves&quot; size=&quot;3&quot;&gt; <br />       &lt;option value=&quot;David&quot;&gt;David Duquese &lt;/option&gt; <br />       &lt;option value=&quot;Kevin&quot;&gt;Kevin Degrande&lt;/option&gt; <br />       &lt;option value=&quot;Kurt&quot;&gt;Kurt Vandoorne&lt;/option&gt; <br />       &lt;option value=&quot;Jeroen&quot;&gt;Jeroen Degaarne&lt;/option&gt; <br />       &lt;option value=&quot;Aamer&quot;&gt;Aamer Hicham&lt;/option&gt; <br />       &lt;/select&gt; <br />       &lt;br/&gt; <br /> <br />       Name&#58; &lt;input type=&quot;text&quot; name=&quot;name&quot; id=&quot;name&quot; size=&quot;30&quot; /&gt;&lt;br /&gt; <br /> <br /> <br />       &lt;input type=&quot;submit&quot; name=&quot;submit&quot; id=&quot;button&quot; value=&quot;Send&quot; /&gt; <br />       &lt;/form&gt; <br />       &lt;/body&gt; <br />       &lt;/html&gt; <br /> &lt;?php <br /> &#125;//end function <br /> ?&gt; [/code]<br /> <br /> <br /> This is what I got untill now for someone else, but there are still some mistakes in it.<br /> <br /> Can you help ?]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5125/18527.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5125/18527.php</link>
				<pubDate><![CDATA[Sun, 30 Oct 2005 20:54:17]]> GMT</pubDate>
				<author><![CDATA[ Robbin]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ it's late and I'm tired.<br /> <br /> Use[code]if &#40;!isset&#40;$_POST&#91;'submit'&#93;&#41;&#41;<br /> &#123;<br />    display_form;<br /> &#125; else &#123;<br /> handle submitted data here<br /> &#125;[/code]<br /> <br /> Also don't worry about this[code]   $headers  = &quot;MIME-Version&#58; 1.0\n&quot;;<br />    $headers .= &quot;Content-type&#58; text/html; charset=iso-8859-1\n&quot;;<br />    $headers .= &quot;From&#58; admin&lt;no-reply@mydomain.com&gt;\nX-Mailer&#58; PHP Automated Mailer&quot;; [/code]because the emails are only for you and they will only be text.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5125/18533.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5125/18533.php</link>
				<pubDate><![CDATA[Mon, 31 Oct 2005 00:52:05]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
	</channel>
</rss>