notice undefinded variable
Posted: Wed Oct 26, 2011 3:30 pm
Hello, I am annoyed from this error !!!
Notice: undefined variable ...
I am creating a registration form with more than 10 fields and checkbox !!
I know that this error comes form the requirement of the isset() function but I can't support this anymore!!!!:@:@
for example:
I think if I want to do the isset condition each time it will take lot of time .. and the code will be more complicated when you look at it ...
I also tried to do this with a function wich I called it value($variable){if(isset($variable){echo $variable;})} but still not working ...
is there any way to disable this error, I am creating this site on my localhost, in case I disabled this on my localhost, may I find problems when I upload it to a paid domain ?? if yes what to do ?? Can I change php.ini inside a paid domain ??
thank you, and please don't convince me to do the isset condition
Notice: undefined variable ...
I am creating a registration form with more than 10 fields and checkbox !!
I know that this error comes form the requirement of the isset() function but I can't support this anymore!!!!:@:@
for example:
Code: Select all
<form>
<input name="test" type="text" value="<?php echo $_POST['test'];?>">
</form>I also tried to do this with a function wich I called it value($variable){if(isset($variable){echo $variable;})} but still not working ...
is there any way to disable this error, I am creating this site on my localhost, in case I disabled this on my localhost, may I find problems when I upload it to a paid domain ?? if yes what to do ?? Can I change php.ini inside a paid domain ??
thank you, and please don't convince me to do the isset condition