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

54 Like 34 Dislike
Previous php-forum Next php-forum
Other php-forum

Error In Syntax
I got this error:

Code: Parse error: syntax error, unexpected '>' in /home/bucket/publ

big pagination problem in php
<?php

$connect = mysql_connect("localhost", "root", "")

array_combine() trouble w/csv file
I have a problem with a piece of code I wrote to import some records from a csv file into mysql. I h

Error with Font and imagettfbbox
I keep getting an error that says "Warning: imagettfbbox() [function.imagettfbbox]: Could not f

Why does this file not return file names that start with numbers?
This file returns a list of filenames to help populate a drop down in my form. For some reason it ig

Converting RGB values to HEX
Code: <?PHP

$file_handle = fopen("colors/rgb.csv", "r");

wh

php file erros / need help please
Hello

Someone decoded a zend file for me.. after uploaded it on ftp i get some errors, i trye

Problem assigning value to variable in "IF" function
Does this script makes sense? I am trying to take the value that is set to "authenticat" a

Remote Database Access
Hey guys!!

OK, i'm used to only working with databases from the CPANEL, accessing phpMyAdmin

Need help with simple code, back and forward buttons.
Basically, I have a set of pages in a folder, which have the title somephrasehere_09.php, somephrase

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