SitePoint Sponsor |
|
User Tag List
Results 1 to 5 of 5
Thread: Variable problem...
-
Mar 9, 2001, 13:19 #1
My index page calls new pages with following url:
index.php?page=links
links is a simple link.php page...
but when I try
index.php?page=links&id=1
to call category 1 in link.php, that doesn't work...
the page doesn't receive that variable...
what can i do?
-
Mar 9, 2001, 15:28 #2
- Join Date
- Aug 2000
- Location
- Silicon Valley
- Posts
- 2,241
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Without the code of the script, we can't help you.
And it should get the value of id.- Son Nguyen
AdSpeed.com - Ad Serving and Ad Management Made Easy
-
Mar 9, 2001, 16:17 #3
I found it
Code:<? if($page == links){ include("links.php?id=$id");} ?>
index.php?page=links&id=1
easy, not?
-
Mar 11, 2001, 18:21 #4
- Join Date
- Mar 2001
- Location
- Albany, NY
- Posts
- 15
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
If you include just links.php it should work with the variable automatically since its passed to the current script. I'm not sure if doing that is going to mess anything up, but if I were coding it I'd just use:
if($page == links){ include("links.php");}John Reyes
HostRocket.com Support
-
Mar 11, 2001, 18:26 #5
- Join Date
- Dec 2000
- Location
- Idaho, USA
- Posts
- 452
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
declare
GLOBALBlamestorming: Sitting around in a group discussing why a deadline was missed or a project failed and who was responsible.
Exbabylon- Professional Internet Services
Bookmarks