Checkbox info wont include in Mailto


Posted on 16th Feb 2014 07:03 pm by admin

Hey, im new to php.
Basically I have made a form to request which type of job(s) are needed, which when filled will then be sent to an email address.

The problem im having is that when more than 1 checkbox is ticked, the mailto only sends 1 of the checkedboxes.

My script for the checkboxes are:::::::
<span class="label"><span class="labelred">*</span>Job type:</span>
<label>
<input type="checkbox" name="job" value="paper" id="job_0" />
Paper Hanging</label>
<br />
<div style="margin-left:270px";><label>
<input type="checkbox" name="job" value="painting" id="job_1" />
Painting</label>
<br />
<label>
<input type="checkbox" name="job" value="insurance" id="job_2" />
Insurance Work</label>
</div>

--------------------------------------------------------------
My mailto script for this section is basically:
$_job = $_REQUEST['job']..

How do i request an individual job ID? or make the name of the checkboxes 'job' to include all th checked items in to the main body of the email?
Just so you know, in the body of the email, i simply have the $job variable added into it.

Any help

No comments posted yet

Your Answer:

Login to answer
54 Like 34 Dislike
Previous forums Next forums
Other forums

PHP url branch??
Functionally, using PHP, I'm doing a test of login input submitted by a user via an html form in a f

styling a RadioButtonList
HiI need to have a radio button and close to it, its lable, then a space then another set of those.

Login Issue's
Code: <?php
$file = fopen('user.txt', 'r');

/* Set login to false initially */

Rounding a number queried from a database
I know that to display a rounded number you just do echo "round($number)";. But how would

need help about
i store the value of my select statement result to an array and stored it to a variable named $fname

Comparing Values
Hi
I'm reading data from a database and this seems to work OK.

Each system has an associat

gather checkbox data from form into email
Hello all,

First, i'd like to thank everyone who responded to my previous posts regarding set

Security Exception on pages using AJAX
I am getting the exception: attempted to perform an operation not allowed by the security policy on

cURL proxy
Okay here is the thing... i know how to add proxys

Code: curl_setopt($ch, CURLOPT_PROXYTYPE,

Using insert variable
need a way to inert variable data to mysql database

$acc = "212121212";
$nok =

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash