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> Quote Link to comment 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? Quote Link to comment 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 ? Quote Link to comment 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"> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.