You are here: Re: [PHP] Including Check box ifo in PHP mail « PHP « IT news, forums, messages
Re: [PHP] Including Check box ifo in PHP mail

Posted by Chirantan Ghosh on 07/29/05 17:42

Hi Everybody,

The reference PHP is http://www.primarywave.com/BrokerOutpost_Contact.php.
I want it have Checkbox like
http://www.primarywave.com/BrokerOutpost_Contact.htm & have it sent vis POST
form action like the PHP sited before.

My ignorace is getting the best of me do help please.

The PHP code that I have ( Form post method Printing info in email part)
=================================================
<?
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 = "cghosh@primarywave.com";
//////////////This is where I want it to be mailed when form is submitted

$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";
/////////////////////////This is where I want to add the Check box like(
http://www.primarywave.com/BrokerOutpost_Contact.htm )
$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];

?>
==================================================
I tried putting in labeled Checkbox & included the names in
$mailBody .= "CheckBox name: $CheckBoxname\n";
I tried the NAME, LABLE all same to avoid confusion


Thanks a lot,
C

 

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

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