Hi frnds.....
i have small doubt..
here i am copying code..plz see once..
till the table ends..it works fine..the page moves to thanku page....but the feed back is not moving to the mail(mail function )........

feedback.php

<?
$contact_name=$_POST['contact_name'];
$contact_phone=$_POST['contact_phone'];
$contact_email=$_POST['contact_email'];
$contact_comments=$_POST['contact_comments'];


 $mail_body='<style type=text/css><!--td {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;}--></style>
<table width="50%"  border="0" align="center" cellpadding="1" cellspacing="0" bgcolor="#E7E7E7">
  <tr>
    <td><table width="100%"  border="0" align="center" cellpadding="5" cellspacing="0" bgcolor="#FFFFFF">
        <input type="hidden" name="contact" value="ok">
        <tr>
          <td colspan="3" align="center" height=35><strong>Contact Details</strong></td>
        </tr>
        <tr>
          <td width="34%">contact_name</td>
          <td width="3%">:</td>
          <td width="63%">'.$contact_name.'</td>
        </tr>
		<tr>
          <td>contact_phone </td>
          <td>:</td>
          <td>'.$contact_phone.'</td>
        </tr>
        <tr>
          <td>contact_email </td>
          <td>:</td>
          <td>'.$contact_email.'</td>
        </tr>
        
        <tr>
          <td>contact_comments </td>
          <td>:</td>
          <td>'.$contact_comments.'</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
    </table></td>
  </tr>
</table>';


	
	$mailto = 'XX@gmail.com' ;
	$mailheader  = 'MIME-Version: 1.0' . "\r\n";
	$mailheader .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";	
	$mailheader.=" From: ".$_POST['contact_email']."\r\n";
	
		@mail($mailto,'Contact Us Details',$mail_body,$mailheader);		
	echo '<script language="javascript">window.location.href="thanku.html";</script>';	

?>

have you tested your code at local or ftp????

hi shanthi..
thanks 4 giving reply..
i tested in FTP..

all your code is perfect...
have you specified correct email id....
have you checked your email....
try it again....

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.