Closed Thread Icon

Topic awaiting preservation: [PHP] file.php?section=%string ? (Page 1 of 1) Pages that link to <a href="http://ozoneasylum.com/backlink?for=23924" title="Pages that link to Topic awaiting preservation: [PHP] file.php?section=%string ? (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: [PHP] file.php?section=%string ? <span class="small">(Page 1 of 1)</span>\

 
metahuman
Maniac (V) Inmate

From: meme-contagion
Insane since: Aug 2003

posted posted 11-04-2004 22:55

How do you make such pages in PHP? For instance....

index.php?section=home -> index.php
index.php?section=news-> news.php

Hebedee
Paranoid (IV) Inmate

From: Maryland, USA
Insane since: Jan 2001

posted 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?

ninmonkeys
Nervous Wreck (II) Inmate

From:
Insane since: May 2004

posted 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.

I think it's

code:
if ( $_REQUEST['section'] == "news" )

But i'm not sure

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 11-05-2004 09:30

that (or the php->switch syntax.) and php->include shoul do what you want.
Read the manual, this is fairly basic stuff.

metahuman
Maniac (V) Inmate

From: meme-contagion
Insane since: Aug 2003

posted posted 11-05-2004 12:06

Thanks all!

ninmonkeys
Nervous Wreck (II) Inmate

From:
Insane since: May 2004

posted posted 11-05-2004 18:31
quote:
Tyberius Prime said:

Read the manual,

If you have firefox, here's a cool bookmark, location: http://php.net/%s keyword: php

Then you type "php word" to search for a function/documentation on php.

(Edited by ninmonkeys on 11-05-2004 18:33)

« BackwardsOnwards »

Show Forum Drop Down Menu