Re: PHP Printing Error Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Jay,
Sorry for the headache I gave ya out of aggravation :)
Now It mails me everything Except the check box info

Here is the working mail code ( This is a different page: http://www.primarywave.com/BrokerOutpost_Contact.php )
<?
foreach($HTTP_GET_VARS as $indx => $value) {
   ${$indx}=$value;
}
foreach($HTTP_POST_VARS as $indx => $value) {
   ${$indx}=$value;
}
if($sendmessage == "yes"){

$todaytime = date("F j, Y, g:i a");

$mailTo = "gregg@xxxxxxxxxxxxxxx";
//$mailTo = "ryan@xxxxxxxxxxxxxxx";

$mailSubject = "Primary Wave Media Contact BrokerOutpost Ref :: $todaytime";

$mailBody = "Information:\n\n";
if($number){
 $mailBody .= "Number:       $number\n\n";
}
$mailBody .= "Full Name:       $name\n";
$mailBody .= "Company:  $company\n";
$mailBody .= "State:    $state\n";
$mailBody .= "Email:    $email\n";
$mailBody .= "Phone:    $phone\n\n";
$mailBody .= "Main Activities:  $activities\n\n";
$mailBody .= "SelectedNumber:  $SelectedNumber\n";
$mailBody .= "Comments:  $comments\n\n\n";
$mailBody .= "$todaytime";

$mailHeaders = "From: contact@xxxxxxxxxxxxxxxxxxxx\n";

mail($mailTo, $mailSubject, $mailBody, $mailHeaders);

print "<CENTER><H2>Thank You</H2></CENTER>";


}else{

$_num = new number();
$_num->init();

$number = $_num->num_info[number];

?>

=========
[snip]
I put the whole NON-WORKINGcode in .txt version at
http://www.primarywave.com/NONworkingCODE.txt
I gave group & global Writing permission aswell, edit if you like.
[/snip]


----- Original Message ----- From: "Jay Blanchard" <jay.blanchard@xxxxxxxxxxxxxxxxxxxxx>
To: "Chirantan Ghosh" <cghosh@xxxxxxxxxxxxxxx>
Cc: <php-general@xxxxxxxxxxxxx>
Sent: Wednesday, August 24, 2005 12:28 PM
Subject: RE:  PHP Printing Error Help


[snip]
I put the whole code in .txt version at
http://www.primarywave.com/NONworkingCODE.txt
I gave group & global Writing permission aswell, edit if you like.
[/snip]

*smacks forehead* Hello? Is this thing on? Post only the relevant code?

Can we see the source of the one that works? Only the mail code
please....

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux