Check box value don't show up in email.
- postonoh
- Newbie


- Joined: Feb 02, 2011
- Posts: 5
- Status: Offline
I am trying to create php script that when a persons has selected yes on the form for tickets
it emails name and email to emailaddress2 and email all the other information filled out on the form to emailaddress1
This is what is happening when a user select yes or no it is still emails the information listed in the function flashseed ()to emailaddress2
I need that if the say no not to call the function.
Also, I have four check boxes on the page I need to know the value of the checked boxes when I receive the emails when they register.
So one if person registers and select yes they need tickets. emailaddress2 should receive email with Name and email address. emailaddress1 should receive email with Company Name, Name, Address, City, State, Zip, tickets(yes or no), Check box value(Rock, Jazz, Classical, Soul).
I hope I am explaining this OK.
it emails name and email to emailaddress2 and email all the other information filled out on the form to emailaddress1
This is what is happening when a user select yes or no it is still emails the information listed in the function flashseed ()to emailaddress2
I need that if the say no not to call the function.
Also, I have four check boxes on the page I need to know the value of the checked boxes when I receive the emails when they register.
So one if person registers and select yes they need tickets. emailaddress2 should receive email with Name and email address. emailaddress1 should receive email with Company Name, Name, Address, City, State, Zip, tickets(yes or no), Check box value(Rock, Jazz, Classical, Soul).
I hope I am explaining this OK.
Code: [ Select ]
<?php
function flashseed()
{
/* Email Variables */
$emailSubject = 'Event';
$webMaster = 'emailaddress2';
/* Data Variables */
$name = $_POST['Name'];
$email = $_POST['Email'];
$yes = $_POST['tickets'];
$body = <<<EOD
<br><hr><br>
Name: $name <br>
Email: $email <br>
EOD;
$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body,
$headers);
}
/* Email Variables */
$emailSubject = 'Event';
$webMaster = 'emailaddress1';
/* Data Variables */
$name = $_POST['Name'];
$email = $_POST['Email'];
$phone = $_POST['Phone_Number'];
$company = $_POST['Company'];
$address = $_POST['Address'];
$city= $_POST['City'];
$state = $_POST['State'];
$zip = $_POST['Zip_Code'];
$yes = $_POST['tickets'];
if (flashseed($yes) == "Yes")
$checkbox = $_POST['ckboxGrp1'];
foreach ($checkbox as $chkbx)
{
echo "$chkbx is checkeg\n";
}
$body = <<<EOD
<br><hr><br>
Company: $company <br>
Name: $name <br>
Email: $email <br>
Phone: $phone <br>
Address: $address<br>
City: $city <br>
State: $state <br>
Postal Code: $zip <br>
Tickets: $yes <br>
Certification: $chkbx <br>
EOD;
$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body,
$headers);
/* Results rendered as HTML */
$theResults = <<<EOD
<html>
<head>
<title>sent message</title>
<meta http-equiv="refresh" content="3;URL=index.html">
<style type="text/css">
<!--
body {
background-color: #244a30;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 20px;
font-style: normal;
line-height: normal;
font-weight: normal;
color: #fab323;
text-decoration: none;
padding-top: 200px;
margin-left: 150px;
width: 800px;
}
-->
</style>
</head>
<blockquote><center>
<div align="center">Registration Complete!<br>
You will return to company in a few seconds !</div>
</center></blockquote>
</div>
</body>
</html>
EOD;
echo "$theResults";
?>
function flashseed()
{
/* Email Variables */
$emailSubject = 'Event';
$webMaster = 'emailaddress2';
/* Data Variables */
$name = $_POST['Name'];
$email = $_POST['Email'];
$yes = $_POST['tickets'];
$body = <<<EOD
<br><hr><br>
Name: $name <br>
Email: $email <br>
EOD;
$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body,
$headers);
}
/* Email Variables */
$emailSubject = 'Event';
$webMaster = 'emailaddress1';
/* Data Variables */
$name = $_POST['Name'];
$email = $_POST['Email'];
$phone = $_POST['Phone_Number'];
$company = $_POST['Company'];
$address = $_POST['Address'];
$city= $_POST['City'];
$state = $_POST['State'];
$zip = $_POST['Zip_Code'];
$yes = $_POST['tickets'];
if (flashseed($yes) == "Yes")
$checkbox = $_POST['ckboxGrp1'];
foreach ($checkbox as $chkbx)
{
echo "$chkbx is checkeg\n";
}
$body = <<<EOD
<br><hr><br>
Company: $company <br>
Name: $name <br>
Email: $email <br>
Phone: $phone <br>
Address: $address<br>
City: $city <br>
State: $state <br>
Postal Code: $zip <br>
Tickets: $yes <br>
Certification: $chkbx <br>
EOD;
$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body,
$headers);
/* Results rendered as HTML */
$theResults = <<<EOD
<html>
<head>
<title>sent message</title>
<meta http-equiv="refresh" content="3;URL=index.html">
<style type="text/css">
<!--
body {
background-color: #244a30;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 20px;
font-style: normal;
line-height: normal;
font-weight: normal;
color: #fab323;
text-decoration: none;
padding-top: 200px;
margin-left: 150px;
width: 800px;
}
-->
</style>
</head>
<blockquote><center>
<div align="center">Registration Complete!<br>
You will return to company in a few seconds !</div>
</center></blockquote>
</div>
</body>
</html>
EOD;
echo "$theResults";
?>
- <?php
- function flashseed()
- {
- /* Email Variables */
- $emailSubject = 'Event';
- $webMaster = 'emailaddress2';
- /* Data Variables */
- $name = $_POST['Name'];
- $email = $_POST['Email'];
- $yes = $_POST['tickets'];
- $body = <<<EOD
- <br><hr><br>
- Name: $name <br>
- Email: $email <br>
- EOD;
- $headers = "From: $email\r\n";
- $headers .= "Content-type: text/html\r\n";
- $success = mail($webMaster, $emailSubject, $body,
- $headers);
- }
- /* Email Variables */
- $emailSubject = 'Event';
- $webMaster = 'emailaddress1';
- /* Data Variables */
- $name = $_POST['Name'];
- $email = $_POST['Email'];
- $phone = $_POST['Phone_Number'];
- $company = $_POST['Company'];
- $address = $_POST['Address'];
- $city= $_POST['City'];
- $state = $_POST['State'];
- $zip = $_POST['Zip_Code'];
- $yes = $_POST['tickets'];
- if (flashseed($yes) == "Yes")
- $checkbox = $_POST['ckboxGrp1'];
- foreach ($checkbox as $chkbx)
- {
- echo "$chkbx is checkeg\n";
- }
- $body = <<<EOD
- <br><hr><br>
- Company: $company <br>
- Name: $name <br>
- Email: $email <br>
- Phone: $phone <br>
- Address: $address<br>
- City: $city <br>
- State: $state <br>
- Postal Code: $zip <br>
- Tickets: $yes <br>
- Certification: $chkbx <br>
- EOD;
- $headers = "From: $email\r\n";
- $headers .= "Content-type: text/html\r\n";
- $success = mail($webMaster, $emailSubject, $body,
- $headers);
- /* Results rendered as HTML */
- $theResults = <<<EOD
- <html>
- <head>
- <title>sent message</title>
- <meta http-equiv="refresh" content="3;URL=index.html">
- <style type="text/css">
- <!--
- body {
- background-color: #244a30;
- font-family: Verdana, Arial, Helvetica, sans-serif;
- font-size: 20px;
- font-style: normal;
- line-height: normal;
- font-weight: normal;
- color: #fab323;
- text-decoration: none;
- padding-top: 200px;
- margin-left: 150px;
- width: 800px;
- }
- -->
- </style>
- </head>
- <blockquote><center>
- <div align="center">Registration Complete!<br>
- You will return to company in a few seconds !</div>
- </center></blockquote>
- </div>
- </body>
- </html>
- EOD;
- echo "$theResults";
- ?>
- Anonymous
- Bot


- Joined: 25 Feb 2008
- Posts: ?
- Loc: Ozzuland
- Status: Online
February 2nd, 2011, 6:48 am
- postonoh
- Newbie


- Joined: Feb 02, 2011
- Posts: 5
- Status: Offline
I am trying to create php script that when a persons has selected yes on the form for tickets
it emails name and email to emailaddress2 and email all the other information filled out on the form to emailaddress1
This is what is happening when a user select yes or no it is still emails the information listed in the function flashseed ()to emailaddress2
I need that if the say no not to call the function.
Also, I have four check boxes on the page I need to know the value of the checked boxes when I receive the emails when they register.
So one if person registers and select yes they need tickets. emailaddress2 should receive email with Name and email address. emailaddress1 should receive email with Company Name, Name, Address, City, State, Zip, tickets(yes or no), Check box value(Rock, Jazz, Classical, Soul).
I hope I am explaining this OK.
it emails name and email to emailaddress2 and email all the other information filled out on the form to emailaddress1
This is what is happening when a user select yes or no it is still emails the information listed in the function flashseed ()to emailaddress2
I need that if the say no not to call the function.
Also, I have four check boxes on the page I need to know the value of the checked boxes when I receive the emails when they register.
So one if person registers and select yes they need tickets. emailaddress2 should receive email with Name and email address. emailaddress1 should receive email with Company Name, Name, Address, City, State, Zip, tickets(yes or no), Check box value(Rock, Jazz, Classical, Soul).
I hope I am explaining this OK.
Code: [ Select ]
<?php
function flashseed()
{
/* Email Variables */
$emailSubject = 'Event';
$webMaster = 'emailaddress2';
/* Data Variables */
$name = $_POST['Name'];
$email = $_POST['Email'];
$yes = $_POST['tickets'];
$body = <<<EOD
<br><hr><br>
Name: $name <br>
Email: $email <br>
EOD;
$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body,
$headers);
}
/* Email Variables */
$emailSubject = 'Event';
$webMaster = 'emailaddress1';
/* Data Variables */
$name = $_POST['Name'];
$email = $_POST['Email'];
$phone = $_POST['Phone_Number'];
$company = $_POST['Company'];
$address = $_POST['Address'];
$city= $_POST['City'];
$state = $_POST['State'];
$zip = $_POST['Zip_Code'];
$yes = $_POST['tickets'];
if (flashseed($yes) == "Yes")
$checkbox = $_POST['ckboxGrp1'];
foreach ($checkbox as $chkbx)
{
echo "$chkbx is checkeg\n";
}
$body = <<<EOD
<br><hr><br>
Company: $company <br>
Name: $name <br>
Email: $email <br>
Phone: $phone <br>
Address: $address<br>
City: $city <br>
State: $state <br>
Postal Code: $zip <br>
Tickets: $yes <br>
Certification: $chkbx <br>
EOD;
$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body,
$headers);
/* Results rendered as HTML */
$theResults = <<<EOD
<html>
<head>
<title>sent message</title>
<meta http-equiv="refresh" content="3;URL=index.html">
<style type="text/css">
<!--
body {
background-color: #244a30;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 20px;
font-style: normal;
line-height: normal;
font-weight: normal;
color: #fab323;
text-decoration: none;
padding-top: 200px;
margin-left: 150px;
width: 800px;
}
-->
</style>
</head>
<blockquote><center>
<div align="center">Registration Complete!<br>
You will return to company in a few seconds !</div>
</center></blockquote>
</div>
</body>
</html>
EOD;
echo "$theResults";
?>
function flashseed()
{
/* Email Variables */
$emailSubject = 'Event';
$webMaster = 'emailaddress2';
/* Data Variables */
$name = $_POST['Name'];
$email = $_POST['Email'];
$yes = $_POST['tickets'];
$body = <<<EOD
<br><hr><br>
Name: $name <br>
Email: $email <br>
EOD;
$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body,
$headers);
}
/* Email Variables */
$emailSubject = 'Event';
$webMaster = 'emailaddress1';
/* Data Variables */
$name = $_POST['Name'];
$email = $_POST['Email'];
$phone = $_POST['Phone_Number'];
$company = $_POST['Company'];
$address = $_POST['Address'];
$city= $_POST['City'];
$state = $_POST['State'];
$zip = $_POST['Zip_Code'];
$yes = $_POST['tickets'];
if (flashseed($yes) == "Yes")
$checkbox = $_POST['ckboxGrp1'];
foreach ($checkbox as $chkbx)
{
echo "$chkbx is checkeg\n";
}
$body = <<<EOD
<br><hr><br>
Company: $company <br>
Name: $name <br>
Email: $email <br>
Phone: $phone <br>
Address: $address<br>
City: $city <br>
State: $state <br>
Postal Code: $zip <br>
Tickets: $yes <br>
Certification: $chkbx <br>
EOD;
$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body,
$headers);
/* Results rendered as HTML */
$theResults = <<<EOD
<html>
<head>
<title>sent message</title>
<meta http-equiv="refresh" content="3;URL=index.html">
<style type="text/css">
<!--
body {
background-color: #244a30;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 20px;
font-style: normal;
line-height: normal;
font-weight: normal;
color: #fab323;
text-decoration: none;
padding-top: 200px;
margin-left: 150px;
width: 800px;
}
-->
</style>
</head>
<blockquote><center>
<div align="center">Registration Complete!<br>
You will return to company in a few seconds !</div>
</center></blockquote>
</div>
</body>
</html>
EOD;
echo "$theResults";
?>
- <?php
- function flashseed()
- {
- /* Email Variables */
- $emailSubject = 'Event';
- $webMaster = 'emailaddress2';
- /* Data Variables */
- $name = $_POST['Name'];
- $email = $_POST['Email'];
- $yes = $_POST['tickets'];
- $body = <<<EOD
- <br><hr><br>
- Name: $name <br>
- Email: $email <br>
- EOD;
- $headers = "From: $email\r\n";
- $headers .= "Content-type: text/html\r\n";
- $success = mail($webMaster, $emailSubject, $body,
- $headers);
- }
- /* Email Variables */
- $emailSubject = 'Event';
- $webMaster = 'emailaddress1';
- /* Data Variables */
- $name = $_POST['Name'];
- $email = $_POST['Email'];
- $phone = $_POST['Phone_Number'];
- $company = $_POST['Company'];
- $address = $_POST['Address'];
- $city= $_POST['City'];
- $state = $_POST['State'];
- $zip = $_POST['Zip_Code'];
- $yes = $_POST['tickets'];
- if (flashseed($yes) == "Yes")
- $checkbox = $_POST['ckboxGrp1'];
- foreach ($checkbox as $chkbx)
- {
- echo "$chkbx is checkeg\n";
- }
- $body = <<<EOD
- <br><hr><br>
- Company: $company <br>
- Name: $name <br>
- Email: $email <br>
- Phone: $phone <br>
- Address: $address<br>
- City: $city <br>
- State: $state <br>
- Postal Code: $zip <br>
- Tickets: $yes <br>
- Certification: $chkbx <br>
- EOD;
- $headers = "From: $email\r\n";
- $headers .= "Content-type: text/html\r\n";
- $success = mail($webMaster, $emailSubject, $body,
- $headers);
- /* Results rendered as HTML */
- $theResults = <<<EOD
- <html>
- <head>
- <title>sent message</title>
- <meta http-equiv="refresh" content="3;URL=index.html">
- <style type="text/css">
- <!--
- body {
- background-color: #244a30;
- font-family: Verdana, Arial, Helvetica, sans-serif;
- font-size: 20px;
- font-style: normal;
- line-height: normal;
- font-weight: normal;
- color: #fab323;
- text-decoration: none;
- padding-top: 200px;
- margin-left: 150px;
- width: 800px;
- }
- -->
- </style>
- </head>
- <blockquote><center>
- <div align="center">Registration Complete!<br>
- You will return to company in a few seconds !</div>
- </center></blockquote>
- </div>
- </body>
- </html>
- EOD;
- echo "$theResults";
- ?>
postonoh wrote:
I just added the following code
now getting array instead of what has been check in with the check boxes.
Code: [ Select ]
if (isset($_POST['ckboxGrp1']))
{
$_POST['ckboxGrp1'] = implode(', ', $_POST['ckboxGrp1']);
}
$chkbx = $_POST['ckboxGrp1'];
{
$_POST['ckboxGrp1'] = implode(', ', $_POST['ckboxGrp1']);
}
$chkbx = $_POST['ckboxGrp1'];
- if (isset($_POST['ckboxGrp1']))
- {
- $_POST['ckboxGrp1'] = implode(', ', $_POST['ckboxGrp1']);
- }
- $chkbx = $_POST['ckboxGrp1'];
now getting array instead of what has been check in with the check boxes.
- postonoh
- Newbie


- Joined: Feb 02, 2011
- Posts: 5
- Status: Offline
I am trying to create php script that when a persons has selected yes on the form for tickets
it emails name and email to emailaddress2 and email all the other information filled out on the form to emailaddress1
This is what is happening when a user select yes or no it is still emails the information listed in the function flashseed ()to emailaddress2
I need that if the say no not to call the function.
Also, I have four check boxes on the page I need to know the value of the checked boxes when I receive the emails when they register.
So one if person registers and select yes they need tickets. emailaddress2 should receive email with Name and email address. emailaddress1 should receive email with Company Name, Name, Address, City, State, Zip, tickets(yes or no), Check box value(Rock, Jazz, Classical, Soul).
I hope I am explaining this OK.
Now its working. Still have problem with if yes call function if no do call function
it emails name and email to emailaddress2 and email all the other information filled out on the form to emailaddress1
This is what is happening when a user select yes or no it is still emails the information listed in the function flashseed ()to emailaddress2
I need that if the say no not to call the function.
Also, I have four check boxes on the page I need to know the value of the checked boxes when I receive the emails when they register.
So one if person registers and select yes they need tickets. emailaddress2 should receive email with Name and email address. emailaddress1 should receive email with Company Name, Name, Address, City, State, Zip, tickets(yes or no), Check box value(Rock, Jazz, Classical, Soul).
I hope I am explaining this OK.
Code: [ Select ]
<?php
function flashseed()
{
/* Email Variables */
$emailSubject = 'Event';
$webMaster = 'emailaddress2';
/* Data Variables */
$name = $_POST['Name'];
$email = $_POST['Email'];
$yes = $_POST['tickets'];
$body = <<<EOD
<br><hr><br>
Name: $name <br>
Email: $email <br>
EOD;
$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body,
$headers);
}
/* Email Variables */
$emailSubject = 'Event';
$webMaster = 'emailaddress1';
/* Data Variables */
$name = $_POST['Name'];
$email = $_POST['Email'];
$phone = $_POST['Phone_Number'];
$company = $_POST['Company'];
$address = $_POST['Address'];
$city= $_POST['City'];
$state = $_POST['State'];
$zip = $_POST['Zip_Code'];
$yes = $_POST['tickets'];
if (flashseed($yes) == "Yes")
$checkbox = $_POST['ckboxGrp1'];
foreach ($checkbox as $chkbx)
{
echo "$chkbx is checkeg\n";
}
$body = <<<EOD
<br><hr><br>
Company: $company <br>
Name: $name <br>
Email: $email <br>
Phone: $phone <br>
Address: $address<br>
City: $city <br>
State: $state <br>
Postal Code: $zip <br>
Tickets: $yes <br>
Certification: $chkbx <br>
EOD;
$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body,
$headers);
/* Results rendered as HTML */
$theResults = <<<EOD
<html>
<head>
<title>sent message</title>
<meta http-equiv="refresh" content="3;URL=index.html">
<style type="text/css">
<!--
body {
background-color: #244a30;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 20px;
font-style: normal;
line-height: normal;
font-weight: normal;
color: #fab323;
text-decoration: none;
padding-top: 200px;
margin-left: 150px;
width: 800px;
}
-->
</style>
</head>
<blockquote><center>
<div align="center">Registration Complete!<br>
You will return to company in a few seconds !</div>
</center></blockquote>
</div>
</body>
</html>
EOD;
echo "$theResults";
?>
function flashseed()
{
/* Email Variables */
$emailSubject = 'Event';
$webMaster = 'emailaddress2';
/* Data Variables */
$name = $_POST['Name'];
$email = $_POST['Email'];
$yes = $_POST['tickets'];
$body = <<<EOD
<br><hr><br>
Name: $name <br>
Email: $email <br>
EOD;
$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body,
$headers);
}
/* Email Variables */
$emailSubject = 'Event';
$webMaster = 'emailaddress1';
/* Data Variables */
$name = $_POST['Name'];
$email = $_POST['Email'];
$phone = $_POST['Phone_Number'];
$company = $_POST['Company'];
$address = $_POST['Address'];
$city= $_POST['City'];
$state = $_POST['State'];
$zip = $_POST['Zip_Code'];
$yes = $_POST['tickets'];
if (flashseed($yes) == "Yes")
$checkbox = $_POST['ckboxGrp1'];
foreach ($checkbox as $chkbx)
{
echo "$chkbx is checkeg\n";
}
$body = <<<EOD
<br><hr><br>
Company: $company <br>
Name: $name <br>
Email: $email <br>
Phone: $phone <br>
Address: $address<br>
City: $city <br>
State: $state <br>
Postal Code: $zip <br>
Tickets: $yes <br>
Certification: $chkbx <br>
EOD;
$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body,
$headers);
/* Results rendered as HTML */
$theResults = <<<EOD
<html>
<head>
<title>sent message</title>
<meta http-equiv="refresh" content="3;URL=index.html">
<style type="text/css">
<!--
body {
background-color: #244a30;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 20px;
font-style: normal;
line-height: normal;
font-weight: normal;
color: #fab323;
text-decoration: none;
padding-top: 200px;
margin-left: 150px;
width: 800px;
}
-->
</style>
</head>
<blockquote><center>
<div align="center">Registration Complete!<br>
You will return to company in a few seconds !</div>
</center></blockquote>
</div>
</body>
</html>
EOD;
echo "$theResults";
?>
- <?php
- function flashseed()
- {
- /* Email Variables */
- $emailSubject = 'Event';
- $webMaster = 'emailaddress2';
- /* Data Variables */
- $name = $_POST['Name'];
- $email = $_POST['Email'];
- $yes = $_POST['tickets'];
- $body = <<<EOD
- <br><hr><br>
- Name: $name <br>
- Email: $email <br>
- EOD;
- $headers = "From: $email\r\n";
- $headers .= "Content-type: text/html\r\n";
- $success = mail($webMaster, $emailSubject, $body,
- $headers);
- }
- /* Email Variables */
- $emailSubject = 'Event';
- $webMaster = 'emailaddress1';
- /* Data Variables */
- $name = $_POST['Name'];
- $email = $_POST['Email'];
- $phone = $_POST['Phone_Number'];
- $company = $_POST['Company'];
- $address = $_POST['Address'];
- $city= $_POST['City'];
- $state = $_POST['State'];
- $zip = $_POST['Zip_Code'];
- $yes = $_POST['tickets'];
- if (flashseed($yes) == "Yes")
- $checkbox = $_POST['ckboxGrp1'];
- foreach ($checkbox as $chkbx)
- {
- echo "$chkbx is checkeg\n";
- }
- $body = <<<EOD
- <br><hr><br>
- Company: $company <br>
- Name: $name <br>
- Email: $email <br>
- Phone: $phone <br>
- Address: $address<br>
- City: $city <br>
- State: $state <br>
- Postal Code: $zip <br>
- Tickets: $yes <br>
- Certification: $chkbx <br>
- EOD;
- $headers = "From: $email\r\n";
- $headers .= "Content-type: text/html\r\n";
- $success = mail($webMaster, $emailSubject, $body,
- $headers);
- /* Results rendered as HTML */
- $theResults = <<<EOD
- <html>
- <head>
- <title>sent message</title>
- <meta http-equiv="refresh" content="3;URL=index.html">
- <style type="text/css">
- <!--
- body {
- background-color: #244a30;
- font-family: Verdana, Arial, Helvetica, sans-serif;
- font-size: 20px;
- font-style: normal;
- line-height: normal;
- font-weight: normal;
- color: #fab323;
- text-decoration: none;
- padding-top: 200px;
- margin-left: 150px;
- width: 800px;
- }
- -->
- </style>
- </head>
- <blockquote><center>
- <div align="center">Registration Complete!<br>
- You will return to company in a few seconds !</div>
- </center></blockquote>
- </div>
- </body>
- </html>
- EOD;
- echo "$theResults";
- ?>
postonoh wrote:
I just added the following code
now getting array instead of what has been check in with the check boxes.
Code: [ Select ]
if (isset($_POST['ckboxGrp1']))
{
$_POST['ckboxGrp1'] = implode(', ', $_POST['ckboxGrp1']);
}
$chkbx = $_POST['ckboxGrp1'];
{
$_POST['ckboxGrp1'] = implode(', ', $_POST['ckboxGrp1']);
}
$chkbx = $_POST['ckboxGrp1'];
- if (isset($_POST['ckboxGrp1']))
- {
- $_POST['ckboxGrp1'] = implode(', ', $_POST['ckboxGrp1']);
- }
- $chkbx = $_POST['ckboxGrp1'];
now getting array instead of what has been check in with the check boxes.
postonoh wrote:
Code: [ Select ]
if (isset($_POST['ckboxGrp1']))
{
$_POST['ckboxGrp1'] = implode(', ', $_POST['ckboxGrp1']);
}
$chkbx = $_POST['ckboxGrp1'];
foreach ($checkbox as $chkbx)
{
$checkbx .= "$chkbx\n";
}
{
$_POST['ckboxGrp1'] = implode(', ', $_POST['ckboxGrp1']);
}
$chkbx = $_POST['ckboxGrp1'];
foreach ($checkbox as $chkbx)
{
$checkbx .= "$chkbx\n";
}
- if (isset($_POST['ckboxGrp1']))
- {
- $_POST['ckboxGrp1'] = implode(', ', $_POST['ckboxGrp1']);
- }
- $chkbx = $_POST['ckboxGrp1'];
- foreach ($checkbox as $chkbx)
- {
- $checkbx .= "$chkbx\n";
- }
Now its working. Still have problem with if yes call function if no do call function
Page 1 of 1
To Reply to this topic you need to LOGIN or REGISTER. It is free.
Post Information
- Total Posts in this topic: 3 posts
- Users browsing this forum: No registered users and 200 guests
- You cannot post new topics in this forum
- You cannot reply to topics in this forum
- You cannot edit your posts in this forum
- You cannot delete your posts in this forum
- You cannot post attachments in this forum
