PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
m0nk3yb0y wrote:The following code was working fine on my development platform php 4.4.2 but is now not working on the live site php 4.3.2.
Can anyone tell me what I've done wrong?
ENOCRYSTALBALL.
- What exactly isn't working?
What are the error messages and notices?
- Where does $REQUEST_METHOD come from? Sure you don't want $_SERVER['REQUEST_METHOD']?
The $REQUEST_METHOD comes from the form that is in the html further down in the code.
Basicly the form submits the user and pass back onto itself and the if statement picks out the varibles and checks them against whats in the db.
As far as whats happening I'm gettng no error messages and the form just seems to reload itself with nothing happening.
Ok, I tried changing to $_SERVER['REQUEST_METHOD'] and also changing the posted variables to $_POST[variable_name] format and it kinda worked but it seems that the sessions are not being declared.
Thanx for the tip. That was totally the problem I'm now in the process of going through my app and replacing all the POST variables and SESSION variable with the more updated global kind.