Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 How can I use snitz variables to build url

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!
Before posting, make sure you have read this topic!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
lovduv Posted - 27 March 2007 : 22:05:22
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:

<a href="pagelisting.aspx?<%=M_OCCUPATION%>" title="Listing">My listing</a>

Obviously the above doesn't work or I wouldn't be posting...

<moved from="Help: General / Current Version (v3.4.xx)" by="Shaggy" /><
2   L A T E S T    R E P L I E S    (Newest First)
lovduv Posted - 11 July 2007 : 16:22:48
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)<
Shaggy Posted - 28 March 2007 : 04:44:57
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.

<

Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000 Version 3.4.07