Forums

This topic is locked

Form buttons to detail Page

Posted 22 years ago
1
has voted
22 years ago Derran Williams posted:
Can anyone tell me how i may use form buttons to direct my page to a detail or related page? I can do it fine with text or images, but when i try and use a form button, it doesn like it, any suggestions anyone.

many thanks

derran

Replies

Replied 22 years ago
22 years ago Brent Colflesh replied:
Dear Derran,
Examine the code with a text or image link - replicate that in the action variable of the form.

Regards,
Brent

Replied 22 years ago
22 years ago Ned Frankly replied:
Or just put 'button' buttons for each item (no form necessary) and add an onClick to each one like:

onClick='window.location.href=MyPage.asp?ItemID=<%=Mydatabase.Field%>'

The form action method works fine as well, but you'll have to modify it prior to submit if you have more than one item on the page, or name/value your submit buttons in such a way that the receiving page will understand what's been pressed.

Ned Frankly
www.nedfrankly.com
You think I ramble on HERE?

Reply to this topic