Re: PHP Printing Error Help
| From: | Chirantan Ghosh | Date: | Wed, 24 Aug 2005 16:41:30 +0000 |
| Subject: | Re: PHP Printing Error Help | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-221286@lists.php.net to get a copy of this message | ||
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@primarywave.com";
//$mailTo = "ryan@boxcarmedia.com";
$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@primarywavemedia.com\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@niicommunications.com> To: "Chirantan Ghosh" <cghosh@primarywave.com> Cc: <php-general@lists.php.net> Sent: Wednesday, August 24, 2005 12:28 PM Subject: RE: [PHP] 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....