Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Links to Function as Form Buttons??

Status
Not open for further replies.

CJAI

MIS
Joined
Oct 21, 2003
Messages
224
Location
US
ok heres my situation...

ORIGINAL STATE OF MY PAGE IS
1) at the top of my page I have a form where users can enter a modue number to display information from the database.

2) underneath My small form are 2 columns - each taking up 50% the width of the page. In each column there are a list of module numbers

AFTER FORM SUBMISSION
1) when the form is submitted the queried data is displayed underneath the form INSTEAD of the original 2 columns...I GOT THIS PART TO WORK FINE

ISSUE from the original state of the page I need to have the ability so that if a user clicks on one of the module numbers in one of the two columns - then the page looks as it does after form submission

BASICALLY I need the ability for the links in the 2 columns below the form to behave in the same way as the form, and display the same output..

I am having some trouble and have a deadline to meet...If you don't understand the post please ask as I will respond immediately!!!

Thanks for any and all help!

J
 
I don't understand what it is you are looking to do. I you need to create linkes to a function then you need to do this
<a href='vbscript:functionName()'>text</a>. With this though, your functions need to appear at the top of the page.

Does this help?
 
When you write your text in the columns wrap your text with an Anchor tag. Build out the href value the same as the form submission action value but include your name/value pairs as part of the link.

<a href=" target="targetname"> <%=rs.module%> </a>

If this doesn't make sense, submit your code for the form and for building the 2 columns so we can see how your columns are written and be more specific.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top