Jump to content


Photo

Radio Group and php


  • Please log in to reply
2 replies to this topic

#1 npdeleon

npdeleon
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 03 March 2006 - 11:00 PM

Hi,

I'm a n00b to php and I'm having trouble getting my radio group and buttons to work with my php part, mostly because I'm not sure how to code it. my site is: [a href=\"http://ebiz.uoregon.edu/students/ndeleon/\" target=\"_blank\"]http://ebiz.uoregon.edu/students/ndeleon/[/a]

Here's my script that I have (before I added the radio group to the page, it worked fine):

<?php
    $message = "First Name: {$_POST['firstName']}\r\n";
    $message .= "Last Name: {$_POST['lastName']}\r\n";
    $message .= "Address: {$_POST['address']}\r\n";
    $message .= "City: {$_POST['city']}\r\n";
    $message .= "State: {$_POST['state']}\r\n";
    $message .= "Zip Code: {$_POST['zipCode']}\r\n";    
    $message .= "Phone: {$_POST['phone']}\r\n";    
    $message .= "E-mail from: {$_POST['senderEmail']}\r\n";
    $message .= "E-mail Message: {$_POST['emailMessage']}\r\n";
    if (mail("npdeleon@aol.com","Test php",$message,"From: {$_POST['senderEmail']}")) {
        echo "E-mail message mailed successfully.";
    }
    else {
        echo "Problem sending e-mail";
    }
    if (mail($_POST['senderEmail'],"E-mail from website",$message,"From: helpdesk@ebiz.uoregon.edu")) {
        echo "<br /> A copy has been sent to your e-mail address.";
    }
    else {
        echo "Problem sending e-mail<br /><br />";
    }
?>

If anyone can help me figure out how I'd code the radio group in teh php that'd be great!

#2 TylerL

TylerL
  • Members
  • PipPip
  • Member
  • 12 posts

Posted 03 March 2006 - 11:57 PM

Do you mean radio BUTTONS or is there some radio field? I cant seem to figure out your question.

#3 tidalik

tidalik
  • Members
  • PipPip
  • Member
  • 29 posts

Posted 04 March 2006 - 12:33 AM

[!--quoteo(post=351458:date=Mar 3 2006, 06:57 PM:name=TylerL)--][div class=\'quotetop\']QUOTE(TylerL @ Mar 3 2006, 06:57 PM) View Post[/div][div class=\'quotemain\'][!--quotec--]
Do you mean radio BUTTONS or is there some radio field? I cant seem to figure out your question.
[/quote]

He means the radio buttons.




$message .= "They have asked to {$_POST['reqUpdate']} information.\r\n";

Does that work?





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users