getting around the undefined index
- From: ross@xxxxxxxxxxxxx ("Ross")
- Date: Mon, 27 Nov 2006 19:21:24 -0000
I have not found a satisfactory way of doing this yet!!!!
$text = $_REQUEST['text_size'];
if ($text) {
echo $text;
}
I send the $text_size variable to the browser with lines like...
<a href="<? $_SERVER['PHP_SELF']; ?>?text_size=small" class="size1"
id="one">A</a>
When the page initially loads I get a undefined index error as it does not
exist but is there a way of wrapping in in a switch statement or funtion so
the variable is only used when $_REQUEST['text_size']; actually exists.
Ross
.
- Follow-Ups:
- Re: [PHP] getting around the undefined index
- From: Paul Novitski
- Re: [PHP] getting around the undefined index
- From: "Eric Butera"
- Re: [PHP] getting around the undefined index
- From: Stut
- Re: [PHP] getting around the undefined index
- Prev by Date: mail header questions
- Next by Date: Re: looking for a php open sourece project
- Previous by thread: mail header questions
- Next by thread: Re: [PHP] getting around the undefined index
- Index(es):
Relevant Pages
|