Jump to content

Archived

This topic is now archived and is closed to further replies.

mitchw_17

Form inside a form

Recommended Posts


Can you insert a form inside a form?? Reason I ask is, I want the user to be able to click on a button located within the form and be took to a seperate page

Share this post


Link to post
Share on other sites
I'm a bit confused...are you trying to submit some variables in a form, to another form? If so, just do it as you regularly would, but implement the $_POST array of variables into the second form, as hiddens if need be.

Share this post


Link to post
Share on other sites
No, not passing variables through to another form. What I want is the user to click on a button in the form and be redirected to another page. I have tried the onClick button but still doesn't work

[!--quoteo(post=354516:date=Mar 13 2006, 02:50 PM:name=Masna)--][div class=\'quotetop\']QUOTE(Masna @ Mar 13 2006, 02:50 PM) [snapback]354516[/snapback][/div][div class=\'quotemain\'][!--quotec--]
I'm a bit confused...are you trying to submit some variables in a form, to another form? If so, just do it as you regularly would, but implement the $_POST array of variables into the second form, as hiddens if need be.
[/quote]

Share this post


Link to post
Share on other sites
[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]I want the user to be able to click on a button located within the form and be took to a seperate page[/quote]
are you talking about having two separate submit buttons?
I couldn't think of any reason to have a nested form, seems kinda redundant....only reason I could think of is if you wanted to make a certain field mandatory which can be done with a CGI/Javascript anyway.

Share this post


Link to post
Share on other sites
Inside your form use this:

[code]<input type="button" value="clicky" onclick="javascript: window.location.href='someotherpage.php'">[/code]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.