hazel Posted June 26, 2006 Share Posted June 26, 2006 HiCan get and post form method works together? example: if (isset($_POST[]) && isset($_GET[]))??how can i make two submit buttons work in a single form? each of them using get and post method. Link to comment Share on other sites More sharing options...
justsomeguy Posted June 26, 2006 Share Posted June 26, 2006 One form is either get or post. You can have multiple submit buttons, but they will all do the same thing. The only thing you can try is to have the button use javascript to change the form method before submitting. But you can have a form submit by post to a url with querystring information:<form action="process.php?a=1&b=2&c=3" method="post">But you can't have a form submit all data to both places, I don't think there's much of a reason to though. 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