you can test for undefined variables using
isset($var)
or
empty($var)
look into the php manual for more details on these functions
yes php does provide you with an option to create variables from variables
themselves
refer to the following
http://www.php.net/manual/en/language.variables.var
"August Malson" <[EMAIL PROTECTED]> wrote:
> Does anyone know of a way to test for undefined variables? For example, I
> I have tried isdef(), but that function does not seem to work, and I
Try is_set().
> Also, does anyone know how to rename a variable?
>
> I want to create a variable $attribu
Not sure if this is hat you are looking for, but I do something similiar in
my script. Its set up so that the action of the script depends on whether
or not the ASIN was passed in..
if(isset($asin))
{
$mode='save_info';
}
that way if something like: "book_reviews.php?asin=000129091" is called,
3 matches
Mail list logo