Hello all,
First, i'd like to thank everyone who responded to my previous posts regarding setting up an SMTP server for my php form. I ended up figuring it out and my form is up and functioning, sending me formatted html emails flawlessly.
But... step two in my process, is now i have to figure out how to pass my checkbox values into the email...
I had previously had the checkboxes commented out while i was trying to just get the form working, but now that i have done that i have to figure out these checkboxes.
my form can be seen here....
http://www.adobedayevents.com/project_request/project_request.php
all the values (other than the checkboxes) are passing to my send_request.php page, and are all sending to my email address formatted. But now i need to figure out how to take my checkbox data and pass it through the send_request.php page and send in the email.
Here is the checkbox...(only posting checkbox because the form is huge and i alredy got everything else working...)
Code: <label><strong>Company/Customer Name:</strong></label><br/>
<input type="text" name="company_customer_name" /><br/><br/>
<label><strong>Please indicate the materials required (check all that apply):</strong></label><br/>
<input type="checkbox" name="check_1" value=".html email invitation" /> <label><strong>.html email invitation</strong></label><br/>
<input type="checkbox" name="check_2" value="agenda" /> <label><strong>agenda</strong></label><br/>
<input type="checkbox" name="check_3" value="registration site (confirmation email, (2) reminder emails" /> <label><strong>registration site (confirmation email, (2) reminder emails</strong></label><br/>
<input type="checkbox" name="check_4" value="Thank You Emails" /> <label><strong>"Thank You" Emails</strong></label><br/>
<input type="checkbox" name="check_5" value="Signage" /> <label><strong>Signage</strong></label><br/>
<input type="checkbox" name="check_6" value="Email Broadcasts" /> <label><strong>Email Broadcast(s)</strong></label><br/>
<input type="checkbox" name="check_7" value="Report prepupload" /> <label><strong>Report prep/upload</strong></label><br/><br/>
here is where all my values from the all the text fields and dropdowns are pulled in...
Code: <?PHP
$to = "rkettering@jpenterprises.com";
$nameto = "Randy Kettering";
$from = "admin@adobedayevents.com";
$namefrom = "Adobe Day Events Administrator";
$subject = "Project Request";
$field_mark_manager = $_POST['1_mark_manager'];
$comp_cust_name = $_POST['company_customer_name'];
//retrieve checkbox variable here
$icf_source_code = $_POST['icf_source_code'];
$lead_code = $_POST['lead_code'];
$product_interest = $_POST['product_interest'];
$add_product_interest = $_POST['additional_product_interest'];
$number_of_units = $_POST['2_units_number'];
$purchase_timeline = $_POST['3_purchase_timeline'];
$industry = $_POST['4_industry'];
$employee_range = $_POST['5_employee_range'];
$revenue_range = $_POST['6_revenue_range'];
$due_date_month = $_POST['7_month'];
$due_date_day = $_POST['8_day'];
$due_date_year = $_POST['9_year'];
$additional_comm = $_POST['additional_comments'];
$message = "Field Marketing Manager: $field_mark_manager<br />
Company/Customer Name: $comp_cust_name<br />
ICF Source Code: $icf_source_code<br />
Lead Code: $lead_code<br />
Product Interest: $product_interest<br />
Additional Product Interest: $add_product_interest<br />
Number of Units: $number_of_units<br />
Purchase Timeline: $purchase_timeline<br />
Industry: $industry<br />
Employee Range: $employee_range<br />
Revenue Range: $revenue_range<br />
Due Date: $due_date_month $due_date_day, $due_date_year<br />
Additional Comments: $additional_comm";
authSendEmail($from, $namefrom, $to, $nameto, $subject, $message);
?>
as you can see, first im pulling in all the variables from the form. Then, $message echoes them all out so that they are all on their own line. Can anybody help me figure out how to get the checkbox data to pass and post into the email? i can post a screenshot of how the email looks when its sent if that will help anyone understand better.
Are the 'name' values on my checkboxes correct? or should they all be named the same?
Any help would be greatly appreciated!!
Randy Kettering
Filtering an Array Based on Value
I have a very simple script set up that pulls data from a database and is output using this code:Code: Print "<table border cellpadding=3>";Print
Cron Job and Output
I have php codes running under a cron job.But everytime i output (echo) , it comes out as complete text:THe php script is setup to output some stuff so they are sent to the cron email...but all the
empty() error
Why doesCode: empty($USER_ID = $_SESSION["USER_ID"])create this error...Parse error: syntax error, unexpected '=', expecting ')' in /home3/finestto/public_html/index.php on line 17
preg_match logical error
Code: <?php$s = file_get_contents("page.html");preg_match('/<div class="brown_box main_ge_page vertically_spaced"><div
Date Format
Hi there,I have a date format like this right now:Sat, 17 Oct 2009 17:04:00 I need to turn that into:2009-10-17T17:04:00ZMy thought process was to remove with regex "Sat," and then just
Download Image from URL and Upload it
Ok, I have been googling for the last 1/2 hour trying to figure this out, Most likely I'm just not searching for the right thing. Here is what I want to do. I want to have a Text box which somebody
Uploading/Downloading files stored in MySQL database
Hey all,This problem just came up in my website and I'm having a hard time figuring out what's wrong. I have a intranet portal running (custom built) and I'm storing all different types of documents
how to validate date using javascript
I need to validate date in textbox using javascript..The date is must be not greater than TODAY date and not less than before 3 months ..If either of these conditions is fails will show the prompt
losing variables between php brackets
Hihave got this code:Code:
session variables not working anymore
hello,i use sessions to handle authentication within my site. my host has been changing a lot of settings in the server recently for "security purposes". and the technicians are pretty much