Please help with some simple HTML Form code

Miscellaneous Forums/General Discussion/Please help with some simple HTML Form code

they do. If you know any C or C++ it is exactly the same. Only instead of cout you use echo "words and stuff";.

actually.. you can retrofit the above junk like so... I'm adding lots of extra returns around the stuff I add... its only a few lines.

html for your page up to where you want text.

<?php
if(!$visitormail == "" && (!strstr($visitormail,"@") || !

strstr($visitormail,".")))
{



Did_we_hit_an_error = "yes";



}
if(empty($visitormail)) {



Did_we_hit_an_error = "yes";




}

$todayis = date("l, F j, Y, g:i a") ;

$attn = $attn ;
$subject = "Newsletter request";

$notes = stripcslashes($notes);

$message = " $todayis [EST] \n
Attention: $attn \n
Message: $notes \n
From: $visitor ($visitormail)\n
Additional Info : IP = $ip \n
Browser Info: $httpagent \n
Referral : $httpref \n
";

$from = "From: $visitormail\r\n";


mail("info@...", $subject, $message, $from);



if(Did_we_hit_an_error == "yes"){

echo "<h2>Please use the Back button and enter a valid e-mail address.</h2>\n";

}else{

echo "<h2>Thank you for filling this in or whatever you wanna say</h2>\n";

}

?>

rest of the HTML for the page