synchro_irl Posted February 26, 2008 Share Posted February 26, 2008 hey guys i have a table tat just goes right across teh page, like in the pic below: i want to have each textbox to appear on a seperate line under each other, i have tried to make this change with frontpage, but it cause my submit button to stop workin is there any simple php line of code that will make it go to the next line! heres teh table code: <form name="adminfrm" method="post" action="" > <table> <tr> <td>Name:</td><td><input type="text" name="txtName" value= '<?php echo $name; ?>' /></td> <td>Email:</td><td><input type="text" name="txtEmail" value= '<?php echo $email; ?>' /></td> <td>Username:</td><td><input type="text" name="txtUsername" value= '<?php echo $username; ?>' /></td> <td>Type:</td><td><input type="text" name="txtType" value= '<?php echo $type; ?>' /></td> <td>Location:</td><td><input type="text" name="txtLocation" value= '<?php echo $location; ?>' /></td> <td>Availability</td><td><input type="text" name="txtAvailability" value= '<?php echo $availability; ?>' /></td> <td>Map</td><td><input type="text" name="txtMap" value= '<?php echo $map; ?>' /></td> <td>StarRating</td><td><input type="text" name="txtStarRating" value= '<?php echo $starRating; ?>' /></td> <td><input type="submit" name="submit" value="Save Changes" /></td> </tr> </table> </form> Link to comment https://forums.phpfreaks.com/topic/93081-line-break/ Share on other sites More sharing options...
beansandsausages Posted February 26, 2008 Share Posted February 26, 2008 <tr> maybe Link to comment https://forums.phpfreaks.com/topic/93081-line-break/#findComment-476903 Share on other sites More sharing options...
beansandsausages Posted February 26, 2008 Share Posted February 26, 2008 Sorry wasnt very nice of me. <form name="adminfrm" method="post" action="" > <table> <tr> <td>Name:</td><td><input type="text" name="txtName" value= '<?php echo $name; ?>' /></td><tr> <td>Email:</td><td><input type="text" name="txtEmail" value= '<?php echo $email; ?>' /></td><tr> <td>Username:</td><td><input type="text" name="txtUsername" value= '<?php echo $username; ?>' /></td><tr> <td>Type:</td><td><input type="text" name="txtType" value= '<?php echo $type; ?>' /></td><tr> <td>Location:</td><td><input type="text" name="txtLocation" value= '<?php echo $location; ?>' /></td><tr> <td>Availability</td><td><input type="text" name="txtAvailability" value= '<?php echo $availability; ?>' /></td><tr> <td>Map</td><td><input type="text" name="txtMap" value= '<?php echo $map; ?>' /></td><tr> <td>StarRating</td><td><input type="text" name="txtStarRating" value= '<?php echo $starRating; ?>' /></td><tr> <td><input type="submit" name="submit" value="Save Changes" /></td> </tr> </table> </form> Link to comment https://forums.phpfreaks.com/topic/93081-line-break/#findComment-476906 Share on other sites More sharing options...
deansatch Posted February 26, 2008 Share Posted February 26, 2008 Just correcting the burnsides code for you. <form name="adminfrm" method="post" action="" > <table> <tr><td>Name:</td><td><input type="text" name="txtName" value= '<?php echo $name; ?>' /></td></tr> <tr><td>Email:</td><td><input type="text" name="txtEmail" value= '<?php echo $email; ?>' /></td></tr> <tr><td>Username:</td><td><input type="text" name="txtUsername" value= '<?php echo $username; ?>' /></td></tr> <tr><td>Type:</td><td><input type="text" name="txtType" value= '<?php echo $type; ?>' /></td></tr> <tr><td>Location:</td><td><input type="text" name="txtLocation" value= '<?php echo $location; ?>' /></td></tr> <tr><td>Availability</td><td><input type="text" name="txtAvailability" value= '<?php echo $availability; ?>' /></td></tr> <tr><td>Map</td><td><input type="text" name="txtMap" value= '<?php echo $map; ?>' /></td></tr> <tr><td>StarRating</td><td><input type="text" name="txtStarRating" value= '<?php echo $starRating; ?>' /></td></tr> <tr><td><input type="submit" name="submit" value="Save Changes" /></td></tr> </table> </form> Link to comment https://forums.phpfreaks.com/topic/93081-line-break/#findComment-476943 Share on other sites More sharing options...
beansandsausages Posted February 26, 2008 Share Posted February 26, 2008 @ deansatch, Thank couldnt be bothered to edit it after i posted. Link to comment https://forums.phpfreaks.com/topic/93081-line-break/#findComment-476944 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.