<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1018223" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1018223</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/need-help-form#comment-1106810</link>
    <description> &lt;p&gt;Whoops, I made a typo.  Directories should be 0766, not 0644.&lt;/p&gt;
 </description>
     <pubDate>Sun, 14 Apr 2002 01:56:03 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1106810 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/need-help-form#comment-1106809</link>
    <description> &lt;p&gt;I&#039;ve tried using the script located in this post &lt;a href=&quot;http://www.webmaster-forums.com/showthread.php?s=&amp;amp;threadid=18141&amp;amp;perpage=10&amp;amp;pagenumber=2&quot; class=&quot;bb-url&quot;&gt;http://www.webmaster-forums.com/showthread.php?s=&amp;amp;threadid=18141&amp;amp;perpage=10&amp;amp;pagenumber=2&lt;/a&gt; but I can&#039;t get it to work. My host is running PHP version 4.1.2 and I&#039;ve been able to get the upload file thing to work with another script but I need it to work with just a simple form.&lt;/p&gt;
&lt;p&gt;Could somebody make it so the script will work just as it&#039;s own file instead of having to be added to another script so I can test it by itself?&lt;/p&gt;
&lt;p&gt;John Saunders&lt;/p&gt;
 </description>
     <pubDate>Sun, 14 Apr 2002 01:39:43 +0000</pubDate>
 <dc:creator>John Saunders</dc:creator>
 <guid isPermaLink="false">comment 1106809 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/need-help-form#comment-1106805</link>
    <description> &lt;p&gt;Encrypt goes in the  tag, not the  tag.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.php.net/manual/en/function.move-uploaded-file.php&quot; class=&quot;bb-url&quot;&gt;move_uploaded_file()&lt;/a&gt; requires PHP &amp;gt;= 4.0.3&lt;br /&gt;
&lt;a href=&quot;http://www.php.net/manual/en/function.copy.php&quot; class=&quot;bb-url&quot;&gt;copy()&lt;/a&gt; works on any version of PHP3 and PHP4.&lt;/p&gt;
&lt;p&gt;move_uploaded_file() is prefered because it validates that the file in question is a file, and that it was uploaded via HTTP_POST.  Copy will always work, but you&#039;ll have to add your own validation.&lt;/p&gt;
&lt;p&gt;Unix directories should never be chmod 0777.  If anything 0644.  Apache only needs read access to server the pages, and write access to upload.&lt;/p&gt;
 </description>
     <pubDate>Sat, 13 Apr 2002 22:17:06 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1106805 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/need-help-form#comment-1106745</link>
    <description> &lt;p&gt;Did you try using copy(... instead of move_uploaded-file(...&lt;/p&gt;
&lt;p&gt;And is your input field correct:&lt;/p&gt;
&lt;p&gt;And the $pic variable must be set to something. You could use:&lt;/p&gt;
&lt;p&gt;Look it over real good and try, try again. Seems that most of the time, my code fragments won&#039;t work because I forgot to include a &quot;;&quot; or a &quot;(&quot; or something small and stupid. Welcome to the world of bugs.&lt;/p&gt;
 </description>
     <pubDate>Fri, 12 Apr 2002 18:39:59 +0000</pubDate>
 <dc:creator>theprofessional</dc:creator>
 <guid isPermaLink="false">comment 1106745 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/need-help-form#comment-1106743</link>
    <description> &lt;p&gt;Clint,&lt;/p&gt;
&lt;p&gt;Thanks for your response. I tried using your script in the post you referred me to, changed the path to the location of my images and CHMODED the directory to 777. Unfortunately, it isn&#039;t working. I&#039;m not getting any error messages or anything and the image doesn&#039;t show up in the directory. I&#039;m pretty sure that my host allows this as long as the permissions are set to 777.&lt;/p&gt;
&lt;p&gt;Any ideas why it isn&#039;t working?&lt;/p&gt;
&lt;p&gt;John Saunders&lt;/p&gt;
 </description>
     <pubDate>Fri, 12 Apr 2002 18:27:19 +0000</pubDate>
 <dc:creator>John Saunders</dc:creator>
 <guid isPermaLink="false">comment 1106743 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/need-help-form#comment-1106741</link>
    <description> &lt;p&gt;And no, the third $choice variable wouldn&#039;t have a 1.&lt;/p&gt;
 </description>
     <pubDate>Fri, 12 Apr 2002 18:07:10 +0000</pubDate>
 <dc:creator>theprofessional</dc:creator>
 <guid isPermaLink="false">comment 1106741 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/need-help-form#comment-1106740</link>
    <description> &lt;p&gt;Assuming your form collected the persons email ($email) and that it somehow produces a password ($newpass) and has checked for unique username ($newid) then you&#039;d send an email with your message ($message) using PHP like so: (if this was for a membership thing)&lt;/p&gt;
&lt;p&gt;$message = &quot;Welcome\n&quot;.&lt;br /&gt;
&quot;Here is your new password -\n&quot;.&lt;br /&gt;
&quot;User Name: $newid\n&quot;.&lt;br /&gt;
&quot;Password: $newpass\n&quot;.&lt;br /&gt;
&quot;If you have any problems, feel free to contact me at\n&quot;.&lt;br /&gt;
&quot;webmaster@mysite.net.\n&quot;.&lt;br /&gt;
&quot;-Webmaster\n&quot;.&lt;br /&gt;
&quot;My Name&quot;;&lt;br /&gt;
mail($email,&quot;Type the subject of your message here&quot;,$message,&quot;From:My Name&quot;);&lt;/p&gt;
&lt;p&gt;Go here to see about getting a file uploaded, 5th post down.&lt;br /&gt;
&lt;a href=&quot;http://www.webmaster-forums.com/showthread.php?s=&amp;amp;threadid=18141&amp;amp;perpage=10&amp;amp;pagenumber=2&quot; class=&quot;bb-url&quot;&gt;http://www.webmaster-forums.com/showthread.php?s=&amp;amp;threadid=18141&amp;amp;perpage=10&amp;amp;pagenumber=2&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Never really used the email thing to send an attachment before. Any of you gurus know the part in mail to send an attachment?&lt;/p&gt;
 </description>
     <pubDate>Fri, 12 Apr 2002 18:04:53 +0000</pubDate>
 <dc:creator>theprofessional</dc:creator>
 <guid isPermaLink="false">comment 1106740 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/need-help-form#comment-1106705</link>
    <description> &lt;p&gt;Hey Nike Guy Man,&lt;/p&gt;
&lt;p&gt;Thanks for your reply. I can&#039;t believe something that seemed so hard could be done in that little amount of code. Should the third $choice variable have the 1 after it since the first two don&#039;t?&lt;/p&gt;
&lt;p&gt;I have another question for you. I was using FormMail.cgi with my form which is written in Perl. Do you know of a form that I can use in PHP that will work with your script? &lt;/p&gt;
&lt;p&gt;Also, is there anyway I can add a field that will allow the visitor to attach a small file in the form? Similar to the way vBulletin does this when replying to a post? Then the file would be sent in the e-mail along with the form results. &lt;/p&gt;
&lt;p&gt;BTW..What part of Maryland are you from?&lt;/p&gt;
&lt;p&gt;Thanks again for your help! &lt;/p&gt;
&lt;p&gt;John Saunders&lt;/p&gt;
 </description>
     <pubDate>Fri, 12 Apr 2002 02:58:49 +0000</pubDate>
 <dc:creator>John Saunders</dc:creator>
 <guid isPermaLink="false">comment 1106705 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/need-help-form#comment-1106703</link>
    <description> &lt;p&gt;What language would you like it to be in?&lt;/p&gt;
&lt;p&gt;In PHP, the formhandler would have this in it&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;== \&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;choice1\&quot;) {&lt;br /&gt;header(\&quot;Location: &amp;lt;a href=\&quot;http://www.yahoo.com/\&quot; class=\&quot;bb-url\&quot;&amp;gt;http://www.yahoo.com/&amp;lt;/a&amp;gt;\&quot;);&lt;br /&gt;} elseif (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; == \&quot;choice2\&quot;) {&lt;br /&gt;header(\&quot;Location: &amp;lt;a href=\&quot;http://www.microsoft.com/\&quot; class=\&quot;bb-url\&quot;&amp;gt;http://www.microsoft.com/&amp;lt;/a&amp;gt;\&quot;);&lt;br /&gt;} elseif (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$choice1&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; == \&quot;choice3\&quot;) {&lt;br /&gt;header(\&quot;Location: &amp;lt;a href=\&quot;http://www.msn.com/\&quot; class=\&quot;bb-url\&quot;&amp;gt;http://www.msn.com/&amp;lt;/a&amp;gt;\&quot;);&lt;br /&gt;} else {&lt;br /&gt;print \&quot;None of the above\&quot;;&lt;br /&gt;}&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;That SHOULD work... worked for me&lt;br /&gt;
[edit]&lt;br /&gt;
D&#039;oh&lt;br /&gt;
Vbulletin parsed the links as URLs...&lt;br /&gt;
It should simply have the URLs no HTML tags... just&lt;br /&gt;
header(&quot;Location: url&quot;);&lt;/p&gt;
 </description>
     <pubDate>Fri, 12 Apr 2002 02:49:00 +0000</pubDate>
 <dc:creator>nike_guy_man</dc:creator>
 <guid isPermaLink="false">comment 1106703 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
