0

Hello all...I am having a little trouble with using an ifelse statement to print information from one page to another.

I have a form that has several questions and the user has to select one out of the few radio buttons...etc...when done they hit submit which is 'confirmed' on the next page. How can I do an ifelse statement stating if 'this radio button is selected' echo this.

Some of my code...

How much do you currently accept, or do you anticipate accepting, in monthly charges?</br>
<?php
If
(radio button selected) ---> this being how to determine which button was selected
echo $method=$POST_["monthly"];
elseif
($monthly="monthly1")
echo $method=$POST_["monthly1"];
elseif
($monthly="monthly2")
echo $method=$POST_["monthly2"];
elseif
($monthly="monthly3")
echo $method=$POST_["monthly3"];
else
echo $method=$POST_["monthly4"];?>
</br>

1
Contributor
1
Reply
2
Views
10 Years
Discussion Span
Last Post by pbrookee
0

I hate when I post something and then 2 minutes later I realize what it is...Thanks anyway!!
Example...
<?php
if ($question1 == "answer1.1")
{
echo ("<b>Correct</b>");
}
else
{
echo ("<b>Incorrect</b>");

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.