mitchw_17 Posted March 13, 2006 Share Posted March 13, 2006 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 Link to comment https://forums.phpfreaks.com/topic/4833-form-inside-a-form/ Share on other sites More sharing options...
Masna Posted March 13, 2006 Share Posted March 13, 2006 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. Link to comment https://forums.phpfreaks.com/topic/4833-form-inside-a-form/#findComment-17000 Share on other sites More sharing options...
mitchw_17 Posted March 13, 2006 Author Share Posted March 13, 2006 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] Link to comment https://forums.phpfreaks.com/topic/4833-form-inside-a-form/#findComment-17019 Share on other sites More sharing options...
Zane Posted March 13, 2006 Share Posted March 13, 2006 [!--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. Link to comment https://forums.phpfreaks.com/topic/4833-form-inside-a-form/#findComment-17145 Share on other sites More sharing options...
hitman6003 Posted March 13, 2006 Share Posted March 13, 2006 Inside your form use this:[code]<input type="button" value="clicky" onclick="javascript: window.location.href='someotherpage.php'">[/code] Link to comment https://forums.phpfreaks.com/topic/4833-form-inside-a-form/#findComment-17187 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.