$matric = $_GET['matric'];
$name = $_GET['name'];
$email = $_POST['email'];

$subject = "Final Exam's Schedule";
$body = "$matric $name $email"  ;
mail($email,$subject,$body);



1) the output only show for $email, the other two : 
   $matric and $name are not shown.

2) can we send put sql query 's result into $body ?

include ("user.php");
$kuari = " select Matric,name from student
            where Matric ='$matrik' ";

$dapat = @mysql_query($kuari);
$baris = mysql_num_rows($dapat);
$ar= mysql_fetch_array($dapat);
$matric = $ar["Matric"];
$nama = $ar["name"];
$subject = "Jadual Final Exam";
$body = "$matrik $nama"  ;
mail($email,$subject,$body);

there are no output in the email. plez help ?





                
__________________________________ 
Yahoo! Movies - Search movie info and celeb profiles and photos. 
http://sg.movies.yahoo.com/

Reply via email to