bowtellj
Posts: 65
|
| Posted: 10/14/2007, 5:29 AM |
|
I would like to hide a record form on a page if the categoryid in a url equals a particular value.
How do I pull the value so I can finish with $Computer->Visible = true/false;
_________________
Thanks
James
Just another Newbie! - Apache 2.24, PHP 5.2.3, MySQL 5.0.41, Windows XP SP2. CCS 3.2.0.2/4.0.2
|
 |
 |
wkempees
Posts: 1679
|
| Posted: 10/14/2007, 5:35 AM |
|
CCGetFromGet().
If your categoryid in the URL is www.url.tld/page?categoryid=1
then
CCGetFromGet('categoryid',0)
will return the value of the variable on he URL, 0 as default when not on URL.
So something like
if (CCGetFromGet('categoryid',0)==1)
Walter
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)
if you liked this info PAYPAL me: http://donate.consultair.eu
|
 |
 |
bowtellj
Posts: 65
|
| Posted: 10/14/2007, 6:03 AM |
|
Thanks worked a treat.
_________________
Thanks
James
Just another Newbie! - Apache 2.24, PHP 5.2.3, MySQL 5.0.41, Windows XP SP2. CCS 3.2.0.2/4.0.2
|
 |
 |
wkempees
Posts: 1679
|
| Posted: 10/14/2007, 7:07 AM |
|
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)
if you liked this info PAYPAL me: http://donate.consultair.eu
|
 |
 |
|