![]() |
| N00b @ PHP need Help with Required Fields. |
|
rjshowah
|
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. |
|
||
|


