|
Posted by Jerry Stuckle on 07/23/05 07:48
IWP506@gmail.com wrote:
> Hey, here's some code:
>
> switch ($_GET["content"]) {
> case "1":
> include("./1_content.html");
> break;
> case "2":
> include("./2_content.html");
> break;
> default:
> echo("nothing!");
> }
>
> That works perfectly... But what can I do about having the page not
> show undefined index errors if they don't insert ?content= at the end
> of the address?
>
> Thanks,
> iwp506@gmail.com
>
if (isset($_GET['content']))
switch.....
else .....
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|