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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form submitting with query string along ASP page

Status
Not open for further replies.

perryair

IS-IT--Management
Apr 7, 2005
91
0
0
IL
Hi,
I have ASP page that contain 'Loop' query strings as shown below..

---------------------------------------------------------
<a href="query.asp?intCat=<%= rsInfo("cat")%>&prt=<%= rsInfo("number")%>">
<img border="0" src="<%= rsInfo("Img")%>"></td>

<%
rsInfo.MoveNext
Loop
%>
---------------------------------------------------------

How can I submit the query string(s) + <input type="hidden"> value of the particular query?

Should I 'Loop' the FORM tag too?

Can you point me to the right direction how this mechanism works with my requirement?

Thanks a lot!!
 
How can I submit the query string(s) + <input type="hidden"> value of the particular query?

Maybe by submitting the form? You're just generating a link which does not submit anything. Try maybe using a submit button instead.

-kaht

[small] <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <.</B>[/small]
[banghead] [small](He's back)[/small]
 
I did not paste the FORM tag here, I have it in my page..
I have to submit the form using 'href' or by ? you tell me.

Make sense now?
 
>>I have to submit the form using 'href' or by ? you tell me.

I already did:

myself said:
You're just generating a link which does not submit anything

href anchors do not submit post data - they just navigate to a new page. You can build the querystring in an anchor so that the new page can be passed parameters - but you will never get post data (i.e. hidden variables and such) by navigating with an anchor. The one exception to this rule is to use the anchor to call a javascript function that calls the submit method on a form. And if you're doing that, then there's really not a reason to use the anchor in the first place, might as well just use a submit button.

Make sense now?

-kaht

[small] <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <.</B>[/small]
[banghead] [small](He's back)[/small]
 
Let me clearly,
I have an ASP page that display pictures from SQL database,
When the user click on one of the pictures it should send
the query to next page which is an ASP page that display
a bigest picture plus some details..
All of this works very well until I added the FORM tag since I have to pass an hidden data to next page.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top