Hyperlink Parameter into Database Form

D

Dennis Burgess

I have a hyperlink parameter, an ticketid number, that I want to include in
the data into my database from a form.

So you goto survey.asp?ticketid=333

I have added a hidden field called tid
and have <%=FP_FieldHTML(fp_rs,"ticketid")%> in the value
I have tried <%=FP_FieldURL(fp_rs,"ticketid")%>

All I get is nulls in the database?

Thanks in advance,

Dennis
 
T

Thomas A. Rowe

On your form page:

<%
TID = Request.QueryString("ticketid")
%>

Then in your Hidden Form Field

<input type="hidden" name="TID" value="<%=TID%>">

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
D

Dennis Burgess

Why does something SO EASY have to be such a PAIN!

Just to understand it, if I did'ent put the request.query in there it would
not work?
 
T

Thomas A. Rowe

You add extra work to the server, plus you leave your site open for hacking via the query string.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top