samXR Posted June 10, 2009 Share Posted June 10, 2009 hey guys been trying to figure out how to put the button horizontally side by side..wat i get is it vertically side by side..hope ya all can help..thanks in advace..::::::::::::::::::::::::::::::::::::::::::::::::::::::::<form action="newupdate1.php" method="post"><center><strong>Type in your Admission Number : <input type="text" name="admin" /></strong></center><br/><br/><center><input type="submit" value="SUBMIT"/><form action="newdelete1.php" method="post"><br/><br/><center><input type="submit" value="DELETE"/></center></form> Link to comment Share on other sites More sharing options...
Natechs Posted June 10, 2009 Share Posted June 10, 2009 You have a form inside a form. You can't do that. For your form, you can do this: <form action="newupdatedelete.php" method="post"><center><strong>Type in your Admission Number : <input type="text" name="admin" /></strong></center><br/><br/><center><input type="submit" value="SUBMIT" name="submit" /><input type="submit" value="DELETE" name="submit" /></center></form> Then for newupdatedelete.php <?phpif($_POST['submit'] == "SUBMIT") { // SUBMIT the post}elseif($_POST['submit'] == "DELETE") { // DELETE stuff here}?> Also, as general advice, try to avoid using presentation tags such as <center>. Use CSS for that. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.