Reply to topic
N00b @ PHP need Help with Required Fields.
rjshowah


Joined: 20 Feb 2007
Posts: 1
Reply with quote
Hey guys,

I'm new at PHP and I got the form up and all situated but I would like to make the First Name, Last Name, E-Mail Address, and the zip code required fields but I don't know how to do it ... Below is my PHP document someone help and let me know what I need to do.

<?php
$to = "rjshowah@cox.net";
$subject = "Contact Us : Request";
$email = $_REQUEST['Mail'] ;

$message = ''.$_REQUEST['First'].' '.$_REQUEST['Last'].'
'.$_REQUEST['Mail'].'
'.$_REQUEST['Postal'].'
'.$_REQUES['Country'].'
'.$_REQUEST['Age'].'
'.$_REQUEST['Income'].'
'.$_REQUEST['Message'].'';

$sent = mail($to, $subject, $message, $headers) ;
if($sent)
{print "Your mail was sent successfully"; }
else
{print "We encountered an error sending your mail"; }
?>
N00b @ PHP need Help with Required Fields.
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic