Avatar of ullenulle
ullenulle
Flag 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
HTMLASP

Avatar of undefined
Last Comment
ullenulle

8/22/2022 - Mon
G_H

Surely

Method="GET"

Open in new window


Rather than LINK

GH
ASKER CERTIFIED SOLUTION
sammySeltzer

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
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
ullenulle

ASKER
Thank you again. I hope you will answer my small extra-question. :o)
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
sammySeltzer

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.
ullenulle

ASKER
Oky doky. Thank you! :-)