Jump to content

Form Submit to hyperlink


jjmusicpro

Recommended Posts

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

Archived

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

×
×
  • Create New...

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.