----- Original Message ----- 
From: "James Keeline"
That would be a very difficult-to-use form.  Only one radio has a name. 
Perhaps you meant:

<form ...>
<input type='radio' name='myref1' value='choice1' selected>Choice 1
<input type='radio' name='myref1' value='choice2'>Choice 2
<input type='submit'>
</form>
_____

if (isset($_POST['myref1'] and $_POST['myref1'])
{
 switch($_POST['myref1'])
 {
  case "choice1":  # do something
    break;
  case "choice2":  # do something else
    break;
  default:         # default actions
 }
}


Thanks James,
                     I am rusty in the HTML of radio buttons. 

What is the difference between 
   "if ((condition1) and condition2)"
and 
   "if ((condition1) && condition2)" 

are they the same or is "&&" boolean and "and" something else ?




Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/php-list/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to