Re: How do you do the ? mark after a filename
| From: | Norbert Ehart | Date: | Mon, 13 Nov 2006 18:50:49 +0000 |
| Subject: | Re: How do you do the ? mark after a filename | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-244564@lists.php.net to get a copy of this message | ||
Thomas Bonham schrieb:
I keep seeing the ? mark after many file names index.php?id=234. So what I would like to know is how do you make them. I have heard that they can make a programs life sampler when doing somethings with a database.in my scripts, i do it with the switch-syntax === snip === switch($_GET['x']) {
case "show": include("show.php"); break;
case "search": include("search.php"); break;
case "new": include("add_entry.html"); break;
default: include("show.php"); break;
}
?>
=== snip ===
now you can enter http://www.domain.at/index.php?x=search; or x=show;
cu,
norbert.