Forums / General / Button / link question..

Button / link question..

Author Message

Bengt Skogly

Sunday 25 January 2004 7:59:33 am

This code makes a "Sign the guestbook" button, how can I make this to be just a link (doing the same thing as the button)?

<form method="post"
action={"content/action/"|ezurl}>
<input class="button"
type="submit"
name="NewButton"
value="Sign the guestbook" />
<input type="hidden"
name="ClassID"
value="18" />
<input type="hidden"
name="NodeID"
value="{$node.node_id}" />
</form>

Balazs Halasy

Monday 26 January 2004 2:21:49 am

It is unfortunately not possible to use link instead button in this case. You have to use a button since several parameters are to be sent from the browser to the server (hidden variables). According to Bård it might be possible to hack in a link using some magical Javascript code. Good luck!

Balazs

Claus Jensen

Monday 26 January 2004 3:23:15 am

Hello,
What you could do instead of a regular button is to "hide" your html-link as an "image-button", ie:
<input type="image" src="/design/user/images/go.gif" name="NewButton" />
Just make the go.gif look like your link. Its another workaround that works.

But what would be really neat is if one could choose to send variables into ez by GET query (i.e: http://ez.no/node/view/full/147?var=hello&name=world). I dont know why they have not made this possible, or maybe they have and its just I dont know how, but that would be real nice!

regards,
claÜs

Harry Oosterveen

Monday 26 January 2004 3:30:48 am

You can make it look like a link, using the stylesheet:

input.button {
background-color: transparent;
border: none;
color: #0000aa;
text-decoration: underline;
cursor: pointer;
}