Here is the entire code on the page. Now I am getting an error again... <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US" dir="ltr"> <head> <meta http-equiv="Content-type" content="text/html; charset=ISO-8859-1" /> <title>Form Test></title> <?php require('includes/meta_tags.inc'); ?> <link rel="stylesheet" href="Gilbert.css" type="text/css" media="screen, handheld" /> </head> <body> <!-- begin outer wrapper div --> <div id="wrapper_outer"> <a class="skiplink" href="#startcontent">Skip over navigation</a> <!-- begin header div --> <div id="header"><?php require('images/Rotating_Banner/rotating_banner.php'); ?></div> <!-- top nav list --> <div id="navcontainer"> <ul id="navlist"> <li ><a href="About_Me.php" title="you know you want to learn more about me">About Me</a></li> <li><a href="Skillset.php" title="I've got skillz">Skill set</a></li> <li><a href="Hireme.php" title="I can do wonders for your web presence">Hire Me</a></li> <li><a href="Portfolio.php" title="web sites, graphics, newsletters">Portfolio</a></li> <li><a href="Contact.php" title="how to get in touch with me">Contact</a></li> <li><a href="Resume.php" title="my beautiful resume">Résumé</a></li> <li><a href="Blog.php" title="My musings on everyday life" >Blog</a></li> <li><a href="RSS.php" title="Syndication that is really simple" >RSS</a></li> </ul> </div> <!-- inner content wrapper div --> <div id="wrapper_inner"> <!-- breadcrumbs div --> <div id="breadcrumbs"><a href="index.php" title="home link" accesskey="1">Home</a> > > Contact</div> <!-- text div --> <div id="main_content"> <a name="startcontent" id="startcontent"></a> <h1 title="Contact">Contact</h1> <? $form_block = " <FORM METHOD=\"POST\" ACTION=\"$PHP_SELF\"> <p><strong>Your Name:</strong></p> <INPUT type=\"text\" NAME=\"senders_name\" SIZE=30></p> <p><strong>Your E-mail Address:</strong><p> <INPUT type=\"text\" NAME=\"senders_email\" SIZE=30></p> <p><strong>Message:</strong></p> <TEXTAREA NAME=\"message\" COLS=30 ROWS=5 WRAP=virtual></TEXTAREA></p> <INPUT type=\"hidden\" name=\"op\" value=\"ds\"> <p><INPUT TYPE=\"submit\" NAME=\"submit\" VALUE=\"Send this Form\"></p> </FORM>"; if ($_POST['op'] !="ds") { // they need to see the form echo "$form_block"; } else if ($_POST['op'] =="ds") { //check value of $_POST['sender name'] if ($_POST['sender_name'] =="") { $name_err = "<font color=red>Please enter your name!</font><br />"; $send = "no"; } //check value of $_POST['sender_email'] if ($POST['sender_email'] =="") { $email_err ="<span class="red">Please enter your email address!</span><br />"; $send= "no"; } //check value of $_POST['message'] if ($POST['message'] =="") { $message_err = "<span class="red">Please enter a message!</span><br />"; $send ="no"; } if ($send !="no") { //it's o.k to send, so build the mail $msg ="E-MAIL SENT FROM WWW SITE\n"; $msg .="Senders Name: $POST{['senders_name']}\n"; $msg .="Senders E-MAIL: $POST{['senders_email']}\n"; $msg .="Senders Name: {$POST['message']}\n\n"; $to ="webguync@xxxxxxxxx"; $subject = "There has been a disturbance in the Force"; $mailheaders .="Reply-To: {$_POST['sender_email']}\n"; //send the mail mail ($to, $subject, $msg, $mailheaders); //display confirmation to user echo "<p>mail has been sent!</p>"; } else if ($send =="no") { //print error messages echo "$name_err"; echo "$email_err"; echo "$message_err"; echo "$form_block"; } } ?> <p><span class="red">*</span> indicates a required field.</p> <p></p> <p></p> <?php require('includes/bottom_links.inc'); ?></div> <!-- begin footer --> <div id="footer"> <?php require('includes/footer.inc'); ?> <span class="date"><? $last_modified = filemtime("index.php"); print("Last Modified "); print(date("m/j/y h:i", $last_modified)); ?></span> </div> <p class="footertag">Inspired-Evolution - Web Site: Design, Development, Marketing for Raleigh/Durham, Chapel Hill, Cary North Carolina.</p> </div> </div> </body> </html> http://inspired-evolution.com/Contact_Form_test.php error is on line 52 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php