mindapolis Posted October 19, 2015 Share Posted October 19, 2015 Hi, I have nested tables and I forget how to put the projectOptions table to the right and of the question and put the rest of the questions below it. Any help would be appreciated. <?php require_once('functions.php'); ?> <!doctype html> <html> <head> <meta charset="utf-8"> <style type="text/css"> </style> <title>Untitled Document</title> </head> <body> <table id="contactForm"> <form> <tr> <td class="question">First Name:<br /> <input type="text" name="fname" size="15"> </td> <td class="question">Last Name<br /> <input type="text" name="lname" size="20"> </td> <td class="question">Organization's Name:<br /> <input type="text" name="orgName" size="15" maxlength="50"> </td> </tr> <tr> <td class="question">Street Address: <input type="text" name="address" size="15" maxlength="50"></td> <td class="question">City: <br /> <input type="text" name="city" size="10" maxlength="25"> </td> <td class="question">State: <br /> <select name = "state" value="<?=$state?>"> <option value ="Please choose a state"> Please choose a state</option> <?php states($state) ?> </select> </td> <td class="question">Zipcode:<br /> <input type="number" name="zipcode" size="5" maxlength="5"> </td> </tr> <tr> <td>Phone Number: <br />(including area code) <br /> <input type="text" name="phone" size="10" maxlength="10"></td> <td>Fax Number: <br />(including area code) <br /> <input type="text" name="fax" size="10" maxlength="10"></td> </tr> <tr> <td>Email:<br /> <input type="text" name="email"></td> <td>Confirm Email:<br /> <input type="text" name="ConfirmEmail"></td> </tr> <tr> <td>What would you like help with? </td> <table id="projectOptions"> <tr> <td><input type="checkbox">Social Media </td> <td><input type="checkbox">Web Content Management </td> </tr> <tr> <td><input type="checkbox">Marketing Material Creation </td> <td><input type="checkbox">SEO (Search Engine Optimization) </td> </tr> <tr> <td><input type="checkbox"> Video Editing </td> <td><input type="checkbox">Web Design </td> </tr> </table> <tr> <td>Overview about the project: </td> <td><textarea></textarea></td> </tr> <tr> <td>If you are not a robot, what year is it? </td> <td><input type="text" name="year" size="4" maxlength="4"> </tr> <tr> <td><input type="submit"></td> <td><input type="reset"></td> </tr> </form> </table> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/298698-nested-tables/ Share on other sites More sharing options...
Ch0cu3r Posted October 19, 2015 Share Posted October 19, 2015 Your <table id="projectOptions"> ... </table> needs to be wrapped within <td></td> tags. Quote Link to comment https://forums.phpfreaks.com/topic/298698-nested-tables/#findComment-1523717 Share on other sites More sharing options...
mindapolis Posted October 19, 2015 Author Share Posted October 19, 2015 fd? What 's that? Quote Link to comment https://forums.phpfreaks.com/topic/298698-nested-tables/#findComment-1523718 Share on other sites More sharing options...
Ch0cu3r Posted October 19, 2015 Share Posted October 19, 2015 What? Where you getting fd from This is what I said Your <table id="projectOptions"> ... </table> needs to be wrapped within <td></td> tags. Quote Link to comment https://forums.phpfreaks.com/topic/298698-nested-tables/#findComment-1523727 Share on other sites More sharing options...
mindapolis Posted October 20, 2015 Author Share Posted October 20, 2015 oh I'm 'so sorry. Been a long day Quote Link to comment https://forums.phpfreaks.com/topic/298698-nested-tables/#findComment-1523750 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.