Jump to content

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


taps128

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?
Link to comment
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
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.