Jump to content

Archived

This topic is now archived and is closed to further replies.

taps128

browser can't find $_SERVER['PHP_SELF']

Recommended Posts

im using a

[code]
if(!_POST['submit'])
                           {
                           ..... do form
                           }
else
     {
     insert data into the database
      }
[/code]

and as a result on hit submit my browesr starts to search on google, but on another module on the same
database it works just fine.. anyone any ideas?

Share this post


Link to post
Share on other sites
[!--quoteo(post=374212:date=May 16 2006, 07:34 AM:name=Nikola Stjelja)--][div class=\'quotetop\']QUOTE(Nikola Stjelja @ May 16 2006, 07:34 AM) [snapback]374212[/snapback][/div][div class=\'quotemain\'][!--quotec--]
im using a

[code]
if(!_POST['submit'])
                           {
                           ..... do form
                           }
else
     {
     insert data into the database
      }
[/code]

and as a result on hit submit my browesr starts to search on google, but on another module on the same
database it works just fine.. anyone any ideas?
[/quote]

...

the module works when i use

[code]form action="http://localhost/pekare/dosomething.php"[/code]

but when i use

[code]form action="<?=$_SERVER['PHP_SELF']?>"[/code]

i looks for pekare (which is the directory where my db is situated) on serbian yellow pages?!

and it seems i corrected the problem

the file name was apparently to long .... it was originaly called formular_za_unos_proizvoda.php
, and I later shortened it to unos_proizvoda.php

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.