We help IT Professionals succeed at work.

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

ullenulle
ullenulle asked
on
415 Views
Last Modified: 2012-05-29
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
Comment
Watch Question

G_H

Commented:
Surely

Method="GET"

Open in new window


Rather than LINK

GH
Top Expert 2011
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
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

Author

Commented:
Thank you again. I hope you will answer my small extra-question. :o)
Top Expert 2011

Commented:
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.

Author

Commented:
Oky doky. Thank you! :-)
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.