Reply
HELP!! need to know how ?id= thing works (*newbie*)
Old 05-12-2006, 08:17 AM HELP!! need to know how ?id= thing works (*newbie*)
Junior Talker

Posts: 2
hey,

i was just wondering, how can i use the php navigation method of having the address go something like:

www.domain.com/page.php?id=something

i hope that makes sense

james
twistedone is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 05-12-2006, 11:36 AM Re: HELP!! need to know how ?id= thing works (*newbie*)
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
Converting Video For YouTube
Posts: 2,339
Name: Keith Marshall
Location: West Hartford, CT
Quote:
Originally Posted by twistedone
i hope that makes sense
No, it doesn't



If you are referring to the link creation, you can do that in just the html, but if you are referring on how to grab the var when the user clicked on that link, your php code should request the $_GET['id']

__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 05-12-2006, 12:04 PM Re: HELP!! need to know how ?id= thing works (*newbie*)
chrishirst's Avatar
Super Moderator

Posts: 15,272
Location: Blackpool. UK
Quote:
how can i use the php navigation method of having the address go something like:
Why ?
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System | Bits & Bobs
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-12-2006, 06:33 PM Re: HELP!! need to know how ?id= thing works (*newbie*)
Novice Talker

Posts: 10
Something like:

$file = '/home/web1/'.$_GET[id].'.htm';

include "$file";
__________________
http://www.kende.com
kende is offline
Reply With Quote
View Public Profile
 
Old 05-12-2006, 10:01 PM Re: HELP!! need to know how ?id= thing works (*newbie*)
Skilled Talker

Posts: 69
PHP Code:
$id $_GET['id']; 
Then you have the variable $id in your file. Now you can use it for whatever purpose you want, such as calling up various pages.
Reality15 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to HELP!! need to know how ?id= thing works (*newbie*)
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12747 seconds with 12 queries