Jump to content

Global issue


makapacs

Recommended Posts

Hi,
I am creating a login on my new website(bidrefer.com). The structure of my website is as follows. The main.php is where the layout is put together. So, in main.php file require( content.php) is called to add Header.inc, Footer.inc and Content which is stored in folder Module(to see main.php go http://bidrefer.com/main.inc).
In this case of login, the content(login form) is added by pointing www.bidrefer.com\main.php?name=Login in browser and the main.php broke the url appart, create $path=www.bidrefer.com\Module\Login\index.php and call require($path).
Why I am telling all this?
Because when I submit Login form, $_POST or $REQUEST return blank. It seems like the globals are emtied before require() added the procesing file - procLogin.php in the main.php file. You may find:
-Login form index.php at http://www.bidrefer.com/Module/Login/index.inc
-Procesing file procLogin.php at http://www.bidrefer.com/Module/Login/procLogin.inc

At the same time to see what happens go to bidrefer.com clicking on 'Log in' link.
Any help are appreciated.
Thank You.
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.