Jump to content

email check boxes form


orangel

Recommended Posts

Please, i am new with php this is my firs script in php and i am going crazy, the problem is when i receive the email from my php script only one of the selection on the boxes is send, i can select all the boxes and only one is send, i apologize be case is probably easy solution, remamber i am new on this.

here is the script.

<?php

/* subject and email varaiables */

 

$emailsubject = 'Requet Form';

$webmaster = '[email protected]';

 

/* buscando las variables */

 

$purpose = $_POST ['purpose'];

$primarytarget = $_POST ['primarytarget'];

$ideas = $_POST ['ideas'];

$favoriteweb = $_POST ['favoriteweb'];

$Checkapplay = $_POST ['Checkapplay'];

$numberofpages = $_POST ['numberofpages'];

$iwellneed = $_POST ['iwellneed'];

$materials = $_POST ['materials'];

$timetable = $_POST ['timetable'];

$yourname = $_POST ['yourname'];

$email = $_POST ['email'];

$PhoneNumber = $_POST ['PhoneNumber'];

$contactpreference = $_POST ['contactpreference'];

 

$body = <<<EOD

<br><hr><br>

Purpose: $purpose <br>

Primary Target: $primarytarget <br>

Ideas: $ideas <br>

Favorite Web: $favoriteweb <br>

Web Sites Types: $Checkapplay <br>

Numbers of pages request: $numberofpages <br>

Material need: $iwellneed <br>

Material supply by client: $materials <br>

Time For the job: $timetable <br>

Name of the client: $yourname <br>

Client email: $email <br>

Client phone number: $PhoneNumber <br>

Contact preference: $contactpreference <br>

EOD;

$headers = "From: $email\r\n";

$headers .= "Content-type: text/html\r\n";

$success = mail ($webmaster, $emailsubject, $body, $headers);

 

/* resultado en html*/

 

$theResults = <<<EOD

<html>

<head>

<title>myweb</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<style type="text/css">

<!--

body {

background-color: #f1f1f1;

font-family: Verdana, Arial, Helvetica, sans-serif;

font-size: 12px;

font-style: normal;

line-height: normal;

font-weight: normal;

color: #666666;

text-decoration: none;

}

-->

</style>

</head>

 

<div>

  <div align="left">Thank you for your interest! Your email will be answered very soon!</div>

</div>

</body>

</html>

EOD;

echo $theResults;

?>

 

Link to comment
https://forums.phpfreaks.com/topic/162464-email-check-boxes-form/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.