View Full Version : Button link?
Ashed
March 14th, 2002, 04:25
Is there a way to make a button (<input type="submit" value="Blah"...>) link to a normal page instead of having to make it process through a script or something?
No, I don't want to make it a picture and use that as a link. :p
Aquatix
March 14th, 2002, 05:13
<FORM METHOD="link" ACTION="URL HERE"><INPUT TYPE="submit" VALUE="TEXT HERE"></FORM>
- Aquatix :)
Ashed
March 14th, 2002, 05:51
Thanks! :D
However, there is a question mark at the end of the URL, why is this?
With a normal URL, this does work but I want my button to link to something like "blah.php?blah=blah". Is this possible? :o
Aquatix
March 14th, 2002, 06:06
Should work fine...
- Aquatix :)
invalid
March 14th, 2002, 19:39
<form method="link" action="URL HERE">
<input type="hidden" name="variable name" value="value" />
<input type="submit" value="TEXT HERE" />
</form>
Canuckkev
March 14th, 2002, 19:56
Originally posted by invalid
Just to add on to what you posted...
If you want to link to http://domain.com/script.php?page=blah, just use:
<form method="link" action="http://domain.com/script.php">
<input type="hidden" name="page" value="blah" />
<input type="submit" value="Submit" />
</form>
Ashed
March 15th, 2002, 12:29
Thanks, that worked perfectly! :)
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.