samXR Posted June 10, 2009 Report 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 Report Share Posted June 10, 2009 (edited) 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. Edited June 10, 2009 by Natechs Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now