Results 1 to 6 of 6
Populating Form Field from URL Forum: HTML ForumReplies: 0
How to pass an array through a form? Forum: CGI Perl ForumReplies: 1
FROM: field in form Forum: Website Scripts ForumReplies: 4
10-04-2004, 12:36 AM #1
Pass a value from a url string to a form field
How can I pass information such as an afilliate id to a form hidden field when the ID is passed on the URL such as
Hidden field name = DEMO1 to receive the value supplied by IDValue from the URL String.
10-04-2004, 07:24 AM #2
Okay, I think I'm reading your question right; let me restate your question and my assumptions.
I assume you are using ASP/VB'ish writing... I'd have to do a bit of PHP homework if you're using that (or I'm sure someone can help out there).
You have a variable in your URL:
You want to pull that variable into an ASP variable, such as. The most simplistic way would be to:
Dim strMyVar ' For your variable strMyVar = Request.QueryString("var") response.write(strMyVar) ' To test your variable
If you have multiple vars, you can parse them out by each Request.QueryString("varname").
A decent Microsoft TechNet article on keeping persistant information:
ASP Alliance showing ASP.NET and C#.
Hope these help!
10-05-2004, 03:41 PM #3
not using asp
10-05-2004, 04:07 PM #4
Hope that helps!
10-05-2004, 07:12 PM #5
Can you suggest a good Cookie Reference?
This is the first time I have ever played with cookes. Any suggestions for a good reference?
10-07-2004, 06:04 AM #6
Yeah, that primer I posted in the previous post is a good place to start--good introduction.