1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

PHP Script help

Discussion in 'Windows Server System' started by adamt56, 2005/05/08.

Thread Status:
Not open for further replies.
  1. 2005/05/08
    adamt56

    adamt56 Inactive Thread Starter

    Joined:
    2005/03/24
    Messages:
    38
    Likes Received:
    0
    Can anyone make sense of this?

    This is an error that I am getting after hitting "submit" on a PHP form.

    <br%20/><b>Notice</b>:%20%20Undefined%20variable:%20%20PHP_SELF%20in%20<b>C:/MySites/question/contactForm.php</b>%20on%20line%20<b>118</b><br%20/>

    PHP.ini is correctly configured on my server to send SMTP.

    Here is my website:

    http://www.thequestioniscoming.com

    Thanks for any help.
     
  2. 2005/05/10
    ReggieB

    ReggieB Inactive Alumni

    Joined:
    2004/05/12
    Messages:
    2,786
    Likes Received:
    2
    The key message appears to be:

    Undefined variable: PHP_SELF in <b>C:/MySites/question/contactForm.php</b> on line 118.

    Looking through the PHP documentation via this search it appears that there are two ways of using PHP_SELF. Either as a variable, in which case it should be:

    $PHP_SELF

    or as a server call, in which case the syntaxt is:

    $_SERVER['PHP_SELF']

    My guess is that you've left out the quote marks (') either side of PHP_SELF
     

  3. to hide this advert.

Thread Status:
Not open for further replies.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.