Topic awaiting preservation: [PHP] file.php?section=%string ? (Page 1 of 1) |
|
---|---|
Maniac (V) Inmate From: meme-contagion |
posted 11-04-2004 22:55
How do you make such pages in PHP? For instance.... |
Paranoid (IV) Inmate From: Maryland, USA |
posted 11-05-2004 00:05
Will you clarify if you want index.php to show news.php or if you want index.php to redirect to news.php? |
Nervous Wreck (II) Inmate From: |
posted 11-05-2004 00:27
I think he means if he uses the url index.php?section=news how can he read the variable to output the content for that page. code: if ( $_REQUEST['section'] == "news" ) But i'm not sure |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 11-05-2004 09:30
that (or the php->switch syntax.) and php->include shoul do what you want. |
Maniac (V) Inmate From: meme-contagion |
posted 11-05-2004 12:06
Thanks all! |
Nervous Wreck (II) Inmate From: |
posted 11-05-2004 18:31
quote: If you have firefox, here's a cool bookmark, location: http://php.net/%s keyword: php |