Request URL Problem

Discussion in 'PHP' started by GeorgeB, Mar 7, 2007.

  1. #1
    hi,

    i m not working a script
    i m receiving this error, when i click continue buton:

    this is writing on the address bar.
    http://www.mydomain.com/adlogger/adlogger/install/<br%20/><b>Notice</b>:%20%20Undefined%20index:%20%20REQUEST_URI%20in% 20<b>//premfs19/sites/premium19/georgeb/webroot/adlogger/adlogger/install/index.php</b>%20on%20line%20<b>109</b><br%20/>


    at the explorer:
    The page cannot be found
    HTTP 400 - Bad Request
    Internet Explorer

    As you see it shows the hard disk path of the hosting company and I think that it must be shown of the domain url.

    My hosting company supports php. But it stops on the line that includes 'request url'.

    <form name="form1" method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">

    what can i do?

    thank you.
     
    GeorgeB, Mar 7, 2007 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    Your error reporting doesn't seem to be set to the default and it shows all errors and notices. Set this at the top of your page.

    
    
    error_reporting(E_ALL ^ E_NOTICE);
    
    PHP:
     
    nico_swd, Mar 7, 2007 IP