Project Detail

PHP Form Processing Script Help - Passing, Validating & Posting Radio Button Value  

PHP Form Processing Script Help - Passing, Validating & Posting Radio Button Value is project number 269250
posted at Freelancer.com. Click here to post your own project.

 

| More Free Trial For New Buyers
 

Status:

Selected Providers: outsourcedev

Budget: $30-250

Created: 06/01/2008 at 13:22 EDT

Bid Count: 17

Average Bid:
$ 36

06/06/2008 at 13:22 EDT

Project Creator: dgrmpr
Employer Rating: 9.9722/109.9722/109.9722/109.9722/109.9722/109.9722/109.9722/109.9722/109.9722/109.9722/10 (36 reviews)

Bid On This Project
 

Description

Project Overview:

This is a small project which requires an experienced PHP developer to help me modify the code I have been working on to pass whatever radio button that is

selected into a separate form processing script then include the value in an email.


Scope of Work:

1. Review the simple form and values

2. Review my current form processing script (below)

3. Incorporate php code to handle passing the radio button value thru my form processing script and ultimately into an email

4. Important:

* I also want the code to have the ability to pass/email a unique block of static text applicable to each respective radio button.

* This block of text will contain information like a unique street address where an event will be held, along with other unique information.

* Please keep in mind that I need to pass this unique block of static text for each radio button.

5. The php code must also force a selection. If a radio button is not chosen, a notification similiar to my "Foobar1" and "Foobar2" will be printed.


==============================================================

THE FOLLOWING IS NOTHING MORE THAN A SAMPLE FORM:

<br />
<br />

<form action="form-processor.php" method="post">

Email Address: <input type="text" name="Primary Registrant Email" id="Primary Registrant Email" value="" maxlength="40" />

<br />
<br />

Attendance Option 01: <input type="radio" name="option" id="A01" value="A01">

<br />

Attendance Option 02: <input type="radio" name="option" id="A02" value="A02">

<br />

Attendance Option 03: <input type="radio" name="option" id="A03" value="A03">

<br />

Attendance Option 04: <input type="radio" name="option" id="A04" value="A04" />
<br />
<br />
<input name="Submit" type="button" value="Submit">
<br />
<br />


<? /*
THE FOLLOWING REPRESENTS MY THE CODE I HAVE BEEN WORKING ON
*/ ?>


<?

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/

@$Option_Selected = stripslashes($_POST['Option_Selected']); // Handled radio button value selection
@$Primary_Registrant_Email = stripslashes($_POST['Primary_Registrant_Email']);

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/

// This is where radio button code should go.

// $check1 = ($_POST['radio'] == 1) ? 'Attendance Option 01' : '';
// $check2 = ($_POST['radio'] == 0) ? 'Attendance Option 02' : '';
// $check3 = ($_POST['radio'] == 0) ? 'Attendance Option 03' : '';


if (strlen($Primary_Registrant_Email) == 0 ){die("Foobar1");}
if(!preg_match("/^[A-Z0-9._%-]+@[A-Z0-9.-]+.[A-Z]{2,4}$/i",$_POST["Primary_Registrant_Email"])) {die("Foobar2");}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/

$ip=$_SERVER['REMOTE_ADDR'];

$Date = strftime("%m/%d/%Y", time());
$Time = strftime("%I:%M:%S %p", mktime());

$mailto = '';
$subject = "";
$header = 'MIME-Version: 1.0' . "rn";
$header .= "Reply-To: n";
$header .= "From: rn";
$header .= "Cc: <>,<>,<> rn";
$header .= "Bcc: <> rn";
$header .= 'Content-Transfer-Encoding: 7bit' . "rn";
$header .= 'Content-type: text/html; charset=iso-8859-1' . "rn";
$emailcontent ="



THIS IS WHERE THE RADIO BUTTON VALUE SHOULD POST SO THAT IT IS INCLUDED IN THE EMAIL.



<br><br>

$Option_Selected

<br><br>

Primary Attendee Email: $Primary_Registrant_Email

<br><br>

Time/Date Stamp: ".$Time." - ".$Date." <br><br>
Visitor IP: ".$ip."<br><br>
Lookup IP: h t t p : //ws.arin . net/whois/?queryinput=".$ip."<br><br>
Message ID: ".md5(rand."".time())." <br><br>

";

mail($mailto,$subject,$emailcontent,$header);

header("Location: ");

?>

Messages Posted:1 View project clarification board Post message on project clarification board

Bid On This Project
 

If you are the project creator or one of the bidders Log In for more options

 

30

1 day

06-01-2008 15:25 EDT

We have handled much more complex forms than this. Please check PMB for the one of them.

help

 

30

1 day

06-01-2008 13:32 EDT

i can help you

help

 

30

0 days

06-01-2008 15:33 EDT

Check PM for more info..

help

 

30

0 days

06-01-2008 15:08 EDT

Please check PM

help

 

50

1 day

06-01-2008 13:26 EDT

I can do this

help

 

40

0 days

06-01-2008 13:31 EDT

Hi sir, I can help you, plz see PM;

help

 

30

0 days

06-01-2008 14:09 EDT

Extremely simple fix - I can have it sorted within 30 minutes. Please PM me for more information.

help

 

30

1 day

06-01-2008 17:51 EDT

hi, i am a professional php webapp/website developer think i can help you with this. Looking forward to work with you.

help

 

30

0 days

06-01-2008 13:27 EDT

I am proficient in PHP. Please see PMB for details.

help

 

30

1 day

06-01-2008 13:43 EDT

i am interested i will provide you full satisfection escrow required please check pmb thanks dhirendra

help

 

30

1 day

06-01-2008 21:15 EDT

We can doyour work sir

help

 

30

1 day

06-01-2008 13:55 EDT

i can make your project.. i have experience in php.. html.. css. mysql.. oracle.. design.. javascript... i can start now.. give me oportunity.. thanks!!

help

 

30

1 day

06-01-2008 14:40 EDT

(No Feedback Yet)

Hello Sir, This is a very simple task. I can do it withing 1 hr. Check your PMB for further detail.

help

 

30

0 days

06-01-2008 14:49 EDT

(No Feedback Yet)

i can provide you this form in minutes. please check PM, thanks.

help

 

30

0 days

06-01-2008 15:31 EDT

(No Feedback Yet)

Same-day service, satisfaction guaranteed. See PMB for details. Thank you!

help

 

100

1 day

06-01-2008 15:58 EDT

(No Feedback Yet)

Hey, i can definitely complete this project for you. I am fully certified in PHP.

help

 

30

1 day

06-01-2008 21:23 EDT

(No Feedback Yet)

I am so interested. It is easy project work.

help


    Bid on this Project