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>

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>");

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.