Wrote a simple 'email this link' script a while back that worked perfectly, & decided--after having done all that work--that i'd turn my old perl email form to php, seeing as i "knew how things work." well, i've got what looks like a simple form, and one that looks like it should work... but does not. the form action is itself. there are four required fields: name, from, subject, and message. if all are defined, it is supposed to conduct a mail() function and send it off to me and echo a thank you; else it's to display the form. instead of doing that, however, when submitted it indeed shows up in the url bar (method=get), but it returns the form, empty--can't even echo the vars. the code is below, can anyone tell what's wrong? [code]<?php define("title","nearlyalaugh.com - Contact Me"); include("include1.php"); // THIS IS JUST THE GENERIC STUFF, SHOULDN'T AFFECT THE FORM $message = stripslashes($message); $to = "myemail@nearlyalaugh.com"; $header = "From: $name <$from>"; // IF ALL VARS SET, EXECUTE MAIL if ($name and $from and $subject and $message and $submitted) { mail($to,$subject,$message,$header); echo " <h2>Thank You for Contacting Me!</h2> <div class=\"desc\">I'll get on it soon as I can</div> <p> <b>What You Submitted:</b><br /> Name: $name<br /> Email: $from<br /> Subject: $subject<br /> Message: $message </p> "; } // OTHERWISE else { echo " <h2>Comments, Questions? Contact Me!</h2> <div class=\"desc\">Just fill out the form below. All fields are <span class=\"highlight\">required</span>.</div> <p> "; // IF SUBMITTED WITHOUT ALL INFO if ($submitted) { if (($name == "") or ($from == "") or ($subject == "") or ($message == "")) { echo "All fields are required. You forgot:"; if ($name == "") { echo " - <b>Your Name</b>"; } if ($from == "") { echo " - <b>Your Email</b>"; } if ($subject == "") { echo " - <b>Your Subject</b>"; } if ($message == "") { echo " - <b>Your Message</b>"; } } } // HERE'S THE FORM echo " <form action=\"$_SERVER[PHP_SELF]\" method=\"get\"> <input type=\"hidden\" name=\"submitted\" value=\"true\" /> <b>Your Name:</b><br /> <input type=\"text\" name=\"name\" value=\"$name\" style=\"width:50%;\" /><br /> <b>Your Email:</b><br /> <input type=\"text\" name=\"from\" value=\"$from\" style=\"width:50%;\" /><br /> <b>Subject:</b><br /> <input type=\"text\" name=\"subject\" value=\"$subject\" style=\"width:50%;\" /><br /> <b>Your Message:</b><br /> <textarea name=\"message\" rows=\"10\" cols=\"60\" wrap=\"virtual\">$message</textarea><br /> <input type=\"reset\" value=\"Clear All\" onclick=\"return confirm('Clear All Fields?!')\" /> <input type=\"submit\" value=\"Send Email\" /> </form> </p> "; } include("include2.php"); // THE GENERIC FOOTER ?>[/code] any help would be greatly appreciated, thanks!