Undefined variable

2»

Comments

  • value constant
    1 E_ERROR
    2 E_WARNING
    4 E_PARSE
    8 E_NOTICE
    16 E_CORE_ERROR
    32 E_CORE_WARNING
    64 E_COMPILE_ERROR
    128 E_COMPILE_WARNING
    256 E_USER_ERROR
    512 E_USER_WARNING
    1024 E_USER_NOTICE
    2047 E_ALL

    I never saw core error or compile error etc are they something to worry about?


    : There are 4 types of errors and warnings in PHP. They are:
    : 1 - Normal Function Errors
    : 2 - Normal Warnings
    : 4 - Parser Errors
    : 8 - Notices (warnings you can ignore)
    :
    : IMHO you should set the level to 15 during development and to 1 in production environments
    :
    :
    :
    :

  • I have the same problem with my php program...
    Unfortunatly, I can't find a Win32 fix.
    I have the php 4.2.1 version.

    Do you have any URL ?

    Regards,

    Eric
  • : I just installed php 4 on apache 2 but I cant get this example to run. It gives the error
    : Notice: Undefined variable: frmName in c:program filesapache groupapachehtdocs est.php on line 4
    : Here's my code (test.php) I have no idea what could be wrong. Someone suggested looking at a config file but I dont know what to do with that.
    :
    :
    :
    : <?php
    : if(!$frmName)
    : {
    :
    : // Switch to HTML mode to display form
    : ?>
    :
    : Name:
    :
    :
    : <?php
    : }else{
    : ?>
    : Hello <?php echo($frmName); ?>
    : !
    : <?php
    : }
    : ?>
    :
    :
    :
    :

    [b]It should be something like this:[/b]

    [code]
    if (isset($_POST['frmName']))
    [/code]
    But I still don't see the purpose or what you want to achieve with this code? You want the user to enter his/her name and then click the Submit button, right? And then display his/her name. Am I correct?
  • Seems like I'm having similar problems in some of my scripts. Could you please show how to lower the error reporting level so php will not report undefined variable notices?

    Thanks
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories