Displaying blank Page When Form Submit
Posted: Mon Jan 26, 2009 11:02 pm
Hi All
I am a newbie to PHP. I need your help. Iam getting blank page when i submit the form. but its working very well in localhost.rplyto = $sEmail; //$msgbody = $fromname . "<br>" . $rplyto . "<br>" . $body; $mail->IsSMTP(); $mail->Host = $mailhost; $mail->SMTPAuth = true; $mail->Username = $fromaddress; $mail->Password = $frompwd; $mail->From = $fromaddress; $mail->FromName = $fromname; $mail->AddReplyTo($rplyto); $mail->AddAddress($toaddress); $mail->IsHTML(true); $mail->Subject = $subject; $mail->Body = $body; if(!$mail->Send()) { echo = "Message could not be sent. <p>"; exit;}echo = "Thank you, your message has been sent!"; }
I am a newbie to PHP. I need your help. Iam getting blank page when i submit the form. but its working very well in localhost.
Code: Select all
if(isset($_POST["Submit"]))
{
require("class.phpmailer.php");
$mail = new PHPMailer();
$toaddress = $sender;
$mailhost = "HOST NAME";
$fromaddress = "USERNAME";
$frompwd = "PASSWORD";
$subject = $_REQUEST["txtSelect"];
$fromname = $sName;
$body = $message;
$Code: Select all