nordlinder Posted April 19, 2012 Share Posted April 19, 2012 Hey guys, quick question... I am starting a small hosting company for my area, and I am stuck on something.. As you can see below, I have a question in my form asking if they have a domain. I want to be able to have a different question show up in the next row down depending on what their answer is. So, if they answer yes, a question shows up asking "What is it?" with a text box for the domain... or if they say no, a question asking "What domain do you want?" shows up with a text box for the answer. I want the next question that shows up to go in the space marked with <?php Next question goes here ?> <tr> <td valign="top"> <label for="first_name"><h2>Do you already have a domain name? </h2>Ex. www.yoursite.com</label> </td> <td valign="top"> <input type="radio" name="domain" value="yes" /> <font size="4">Yes</font><br /> <input type="radio" name="domain" value="no" /><font size="4"> No</font> </font></td> </tr> <tr> <td> <?php Next question goes here ?></td> </tr> Thanks in advance. Quote Link to comment https://forums.phpfreaks.com/topic/261229-php-form-help/ Share on other sites More sharing options...
Muddy_Funster Posted April 19, 2012 Share Posted April 19, 2012 You need to use either Javascript or AJAX Quote Link to comment https://forums.phpfreaks.com/topic/261229-php-form-help/#findComment-1338673 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.