[code=php]
<?
$nume=$_REQUEST['nume'];
$subiect=$_REQU EST['subiect'];
$email=$_REQUES T['email'];
$precizari=$_RE QUEST['precizari'];
$telefon=$_REQU EST['telefon'];
$pers=$_REQUEST['pers'];
$data=$_REQUEST['data'];
$transport=$_RE QUEST['transport'];
$gol=$_POST['gol'];
mail("orizont_t ravel@yahoo.com ",$subiect, "Ma numesc $nume, si doresc sa rezerv $subiect pentru $pers persoane in data de $data. ma puteti contacta pe email, $email sau la numarul de telefon $telefon. mai am de adaugat $precizari, multumesc mult.");
header( "Location: http://www.www.com/inscrisa.html" );
?>
[/code]
I have this code to send email from website to me.
can someone show me how to make an field existance verification code?
like if the "data" field is empty, to post a msg on the site with "data" filed is empty ?
Thanks.
<?
$nume=$_REQUEST['nume'];
$subiect=$_REQU EST['subiect'];
$email=$_REQUES T['email'];
$precizari=$_RE QUEST['precizari'];
$telefon=$_REQU EST['telefon'];
$pers=$_REQUEST['pers'];
$data=$_REQUEST['data'];
$transport=$_RE QUEST['transport'];
$gol=$_POST['gol'];
mail("orizont_t ravel@yahoo.com ",$subiect, "Ma numesc $nume, si doresc sa rezerv $subiect pentru $pers persoane in data de $data. ma puteti contacta pe email, $email sau la numarul de telefon $telefon. mai am de adaugat $precizari, multumesc mult.");
header( "Location: http://www.www.com/inscrisa.html" );
?>
[/code]
I have this code to send email from website to me.
can someone show me how to make an field existance verification code?
like if the "data" field is empty, to post a msg on the site with "data" filed is empty ?
Thanks.
Comment