Menu

Error help

Help
Jason
2005-07-08
2013-06-03
  • Jason

    Jason - 2005-07-08

    Notice: Undefined variable: SERVER_NAME in D:\Inetpub\wwwroot\forms\process.php on line 25

    Notice: Undefined variable: PHP_SELF in D:\Inetpub\wwwroot\forms\process.php on line 25

    Shows up on thany you page after submit. Is on a system with IIS and PHP 4.3.8. Any help would be appreciated?

     
    • TNTEverett

      TNTEverett - 2005-07-08

      These variables are supported by most web host systems.  Not sure why they are not available to you.  I think you should work to resolve this but in the mean time you can do this. 
      In the process.php file line 9;
      $where_form_is="http".($HTTP_SERVER_VARS["HTTPS"]=="on"?"s":"")."://".$SERVER_NAME.strrev(strstr(strrev($PHP_SELF),"/"));

      Remove this line and your thankyou page should display without the error. 

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.