well the main reason why i am doing it with php is so i can get some hands-on experience with it because i want to evolve my website into one that uses php for log in and stuff like that
anyway -- i put it onto my webserver and it works by showing the text that i put in however it still isnt mailing :'( i put in the new mail to code leafypiggy suggested so i will see if it mails to me now
Code:
<p style="color: red;">
<?php
$firstname = $_REQUEST['firstname'] ;
$lastname = $_REQUEST['lastname'] ;
$email = $_REQUEST['email'] ;
$emailchk = $_REQUEST['verifyemail'] ;
$business = $_REQUEST['business'] ;
$text = $_REQUEST['text'] ;
$graphic = $_REQUEST['graphic'] ;
$yes = $_REQUEST['yes'] ;
$no = $_REQUEST['no'] ;
$dlink = $_REQUEST['dlink'] ;
$impress = $_REQUEST['impress'] ;
if ($firstname == "")
{echo("Please enter your first name.");}
if ($lastname == "")
{echo ("Please enter your last name.");}
if ($email == "")
{echo ("Please enter your email address.");}
if ($isValid == "false")
{echo ("The email address you have entered is not valid.");}
if ($email ==! $emailchk)
{echo ("The email addresses you have entered do not match.");}
if ($business == "")
{echo ("Please enter the name of your business or website.");}
if ($yes == "1")
{$to = "garrensilverwing@yahoo.com";
$subject = "$business Advertising Application";
$message = "$firstname $lastname from $business: $text, $graphic, $dlink, $impress";
$from = "$email";
$headers = "From: $from";
mail($to,$subject,$message,$headers);
echo "Thank you for submitted your applicatoin.";}
else{echo ("Only authorized people may submit this application.");}
?>
</p>