Link to home
Start Free TrialLog in
Avatar of ullenulle
ullenulleFlag for United States of America

asked on

HTML button with URL-action doesn't work...

Hi there.

I have a little problem... I use some html-buttons on my page, and that works just fine, but when I need a special link, that refers to a certain record from a recordset, it doesn't work. Here's an example:

<FORM METHOD="LINK" ACTION="dataview.asp?id=<%=(Recordset1.Fields.Item("record_id").Value)%>"><INPUT TYPE="submit" class="styleyellowbutton" VALUE="Existing record"></FORM>

The button just leads to "dataview.asp". How can I make it work with the full URL?

Best regards

Ullenulle
Avatar of G_H
G_H
Flag of United Kingdom of Great Britain and Northern Ireland image

Surely

Method="GET"

Open in new window


Rather than LINK

GH
ASKER CERTIFIED SOLUTION
Avatar of sammySeltzer
sammySeltzer
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ullenulle

ASKER

Hello again.

G_H: Nope.... that didn't change anything.

sammeSeltzer: Yes. That made the change. :-)  In fact, that code is far more simple than the one I used. Thank you! Can you tell me, if the code I used so far has any advantage compared to yours?

Best regards

Ullenulle
Thank you again. I hope you will answer my small extra-question. :o)
Yours "appears" to be using form method to pass to the next page. I am sure that's why G_H made his recommendation to use the get method.

Mine using querystring to post.

It all depends on what you are trying to accomplish.

otherwise, no difference at all.
Oky doky. Thank you! :-)