You are here: Re: [PHP] PHP Printing Error Help « PHP « IT news, forums, messages
Re: [PHP] PHP Printing Error Help

Posted by Chirantan Ghosh on 08/24/05 19:41

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....

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация