|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
variables not posting on localhost php server
Hi, can anybody help me figure out why on a form method=post with action to a php file, will not post the variable on localhost? but when i upload them to my webserver, it works fine! what am I doing wrong?
|
|
#2
|
|||
|
|||
|
Hi, could it be, that the problem is register_globals = off ?
Have you tried using $_POST['username'] to get the variables on the localhost server? May be the local server has a newer version of PHP with the register_globals switched off, which means you can't pass the variables just as $name. All the best, Niall |
|
#3
|
|||
|
|||
|
or...
or perhaps try
method="POST" or method="_POST" sometimes depending on the server that works. then try $_POST['variablename'] jon |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > variables not posting on localhost php server |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|