Snitz™ Forums 2000
https://forum.snitz.com/forumTopic/Posts/64376?pagenum=1
05 November 2025, 10:13
Topic
lovduv
How can I use snitz variables to build url
27 March 2007, 22:05
Basically i am reworking my nav menu in inc_header.asp, and I am building a url for another page on my site and I want to use the M_OCCUPATION in the url like so:
Obviously the above doesn't work or I wouldn't be posting... <moved from="Help: General / Current Version (v3.4.xx)" by="Shaggy" /><
Replies ...
Shaggy
28 March 2007, 04:44
Do you have a variable called M_OCCUPATION? I assume you're wanting to use the value of the M_OCCUPATION field in the members table? My recommendation would be to assign it to a variable in the chkUser function, in the same way the value is assigned to the MemberID variable. You might also want to add a conditional so that that link isn't displayed if a member hasn't entered their occupation in their profile or if they're not logged in.
<
lovduv
11 July 2007, 16:22
If I wanted to use the value of Occupation from the profile to build a url in a non-forum page, including an if statement to redirect if they are not logged in where do I start....
I am hoping to get the URL to look like this www.mysite.com/listing.asp?listingID=M_Occupation (M_Occupation being the value of Occupation that a user entered in their profile) I know I need to add includes...which ones? With inc_header do I use the short one, so it won't mess up my current non-forum header? What code do I use to call the variable in the page? (I know how to do a basic asp call, but do I need to do something diffrent using snitz code)<