close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Different Receipients depending on selection of radio button

Thread began 7/10/2012 5:40 pm by izon_e | Last modified 7/11/2012 9:58 am by izon_e | 1336 views | 1 replies


Different Receipients depending on selection of radio button

Hi, Consider me a non-programmer. I am a newbie and I need help on my creation of form. I have here the code below (the portion I wanted to have recipients when chosen a desired branch:

<input name="center" type="radio" value="Manila">SBR Manila (Main Office)<br />
<input name="center" type="radio" value="Rizal">SBR Rizal<br />
<input name="center" type="radio" value="Aklan">SBR Aklan<br />
<input name="center" type="radio" value="Iloilo">SBR Iloilo<br />
<input name="center" type="radio" value="Cebu City, Cebu">SBR Cebu @ Cebu City<br />
<input name="center" type="radio" value="Mandaue City, Cebu">SBR Cebu @ Mandaue City<br />
<input name="center" type="radio" value="Talisay City, Cebu">SBR Cebu @ Talisay City<br />
<input name="center" type="radio" value="Bohol">SBR Bohol<br />
<input name="center" type="radio" value="Cagayan De Oro">SBR Cagayan De Oro<br />
<input name="center" type="radio" value="Davao">SBR Davao<br />
<input name="center" type="radio" value="General Santos">SBR General Santos

...and in my message_sent.php, here is the complete codes i researched to use:

if(($_SESSION['security_code'] == $_POST['security_code']) && (!empty($_SESSION['security_code'])) ) {

$message = "Last Name : ".$_REQUEST['lastname']."\n";
$message .= "Middle Name : ".$_REQUEST['middlename']."\n";
$message .= "First Name : ".$_REQUEST['firstname']."\n";
$message .="Email Address : ".$_REQUEST['eadd']."\n";
$message .="Contact Number : ".$_REQUEST['contact']."\n";
$message .= "Exam to Take: ".$_REQUEST['review']."\n";
$message .= "Desired Center: ".$_REQUEST['center']."\n";
$message .="Message :".$_REQUEST['message']."\n\n";

$emailadd = $_REQUEST['eadd'];
mail( $to, "SBR Online Inquiry", $message, "From: $emailadd ");
mail( $to['center'], "SBR Online Inquiry", $message, "From: $emailadd ");
// i want this to cc email
mail( "", "SBR Online Inquiry", $message, "From: $emailadd ");
mail( "", "SBR Online Inquiry", $message, "From: $emailadd ");

} else {

header('Location: contact_us.php?failed=not');

Any help will be very much appreciated.


Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...