jjmusicpro Posted April 9, 2010 Share Posted April 9, 2010 I have this form below, and cant get it to go to a hyperlink from a button control. It seems that in the action tag, it cant take parmaters, when it click, it only goes to base site, nothing is added for paramters Ive tried the 2 ways below, both dont work. my_site is my url decided to not put it in <form action="http://my_site/modules.php?name=Content&pa=showpage&pid=2" name="groovyform"><input type="submit" class="groovybutton" value="Group Information" /></form> <form><input type="button" value="Joes button" onClick="window.location.href='http://my_site/modules.php?name=Content&pa=showpage&pid=2'"></form> Link to comment https://forums.phpfreaks.com/topic/198060-form-submit-to-hyperlink/ Share on other sites More sharing options...
mrMarcus Posted April 9, 2010 Share Posted April 9, 2010 does modules.php contain a redirect if a certain condition is not met? Link to comment https://forums.phpfreaks.com/topic/198060-form-submit-to-hyperlink/#findComment-1039222 Share on other sites More sharing options...
jjmusicpro Posted April 9, 2010 Author Share Posted April 9, 2010 nope, i can copy paste that link into my browser and it works fine. works fine even if a hyperlink, it seems as if the form submit dosent take anything after the ? Link to comment https://forums.phpfreaks.com/topic/198060-form-submit-to-hyperlink/#findComment-1039224 Share on other sites More sharing options...
mrMarcus Posted April 9, 2010 Share Posted April 9, 2010 you haven't set a form method. set that to "post" : <form method="post" action="http://my_site/modules.php?name=Content&pa=showpage&pid=2" name="groovyform"> Link to comment https://forums.phpfreaks.com/topic/198060-form-submit-to-hyperlink/#findComment-1039231 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.