Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 read variables from the url
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 11 January 2005 :  11:33:53  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message
I've searched awhile on the net and here but I don't know what to search for =)

What I want to do is have a link like http://www.blaha.com/test.asp?user=tribaliztic

and then on test.asp I use the variable tribaliztic from the url. How do I read the variable from the url?

/Tribaliztic
- www.gotlandrace.se -

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 11 January 2005 :  11:52:30  Show Profile
At the top of test.asp, or at least before you need it, assign it to a variable like so:

MyVariable=request.querystring("user")

If test.asp includes Snitz's inc_func_common.asp, I'd recommend doing it like so:

MyVariable=chkstring(request.querystring("user"),"sqlstring")


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 11 January 2005 :  11:59:59  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message
Nice, I'll give it a try!
Gotta go home now though =(

/Tribaliztic
- www.gotlandrace.se -
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 11 January 2005 :  16:57:31  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message
Wohoo!! It's working!
Thanks alot!

/Tribaliztic
- www.gotlandrace.se -
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.33 seconds. Powered By: Snitz Forums 2000 Version 3.4.07