hi all, i'm doing a project on php and i need to clear this question from my mind.
can i send the information taken from the previous page using php to an email.
these information are stored in a array. what method can i use to send the information?
my php code looks like this:
<?PHP
$to="pbl@yahoo.com";
$subject="PBL Survey\n";
mysql_connect("localhost","root","");
mysql_select_db("phpsurvey");
$resultArr[]=array();
$result = mysql_query("SELECT * FROM survey ")or die ("Couldn't execute query");
$noRow = mysql_num_rows($result);
$msg="SURVEY SENT FROM PBL Site\r\n";
$nos=1;
//loop for the printing of the options capture in the previous php form
for($no=0;$no< $noRow;$no++){
$resultArr[]=$_POST["radiobutton$nos"];
$nos++;
}
//for me to check the number of results
for($resNo=0; $resNo<sizeof($resultArr);$resNo++){
echo"2$resultArr[$resNo]";
}
//i need to send the mail here
//mail($to,$subject,$msg);
?>[code]
please help.
thanx in advance
desperate altgr