in my code page there is a litte form that stores some information. i want to send these informations to my mail adres. i'm using mail() for that ofcourse.
<?
$mod = $HTTP_GET_VARS["mod"];
if ( $mod == 'send' )
{
mail("mailadres","subject","information");
}
?>
...
<form METHOD="POST" ACTION="rezform.php?mod=send">
...
</form>
this is a summary of the code.
question1: the mod part is not working properly. i tried both methods POST and GET. nothing has been changed. it gives this warning..:
Warning: Undefined index: mod .
question2: the mail function can not be connected. it gives this warning..:
Warning: Failed to Connect
what can i do?? by the way i am new at php.
thanx...