Undefined index: randomNumber
            2 posts by 2 authors in: Forums > CMS Builder
Last Post: January 27, 2011   (RSS)          
          Although it works fine my random number for anti-spam
gives lately a lot of errors.
the error: PHP Notice: Undefined index: randomNumber in.....
The specific tag of that error:
What's wrong?
                                        
        gives lately a lot of errors.
the error: PHP Notice: Undefined index: randomNumber in.....
The specific tag of that error:
<?php $randomNumber = rand(100000,999999); ?>What's wrong?
Re: [videopixel] Undefined index: randomNumber
By Damon - January 27, 2011
          Hi,
Your code for creating a random number looks fine. I'm guessing the error is prior to that in the code.
Are you using $randomNumber as a variable somewhere else in the code?
Could you try using another variable name and see if that works?
                          
        Your code for creating a random number looks fine. I'm guessing the error is prior to that in the code.
Are you using $randomNumber as a variable somewhere else in the code?
Could you try using another variable name and see if that works?
      Cheers,
Damon Edis - interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
                    Damon Edis - interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/