--- [EMAIL PROTECTED] wrote:
> Use HTML forms and PHP -
>
> form action="somescript.php" method="post">
> <input type="radio" name="myref1" value="selected">
> <input type-"radio" value="myref2">
> </form>
>
> ---------------------
>
> <?php
> if (isset($_POST['myref1']) &&
> $_POST['myref1']=="selected")){tally=tally+5;}
> // so on but check the html (value) as I do not use radio buttons -
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
}
}
James
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/