Click to See Complete Forum and Search --> : ASP form button help


jclomas
12-17-2004, 03:12 PM
Hello all, I am having a bit of a problem.

I have created a site that uses links to initiate a particualr asp action.....the code for that is here: <a href="template.asp?action=masterbed"> all the link does is make the page pull up a new picture that is called masterbed....

now, I created a form button that I though would do the same thing...here is the code:
<form method="Link" Action="/template.asp?kitchen">
<input type="submit" value="Kitchen">
</form>>

The problem I am having is that the form button does not initiate the action...the picture will not change to kitchen. It simply stays the same as when you first pull up the site.

Anyone have any ideas as to how I can make this button work?

Brandoe85
12-17-2004, 03:31 PM
Ive never seen a form method of link, try using post or get.

jclomas
12-17-2004, 03:45 PM
the 'post' worked, I appreciate the help!

Brandoe85
12-17-2004, 03:52 PM
You're welcome, glad you got it working:D

jclomas
12-17-2004, 03:57 PM
is there any way to make the buttons all the same size, instead of dependent on what you write in the value field?

russell
12-17-2004, 04:03 PM
use css

<input type=button value="go" style="width:100px">