|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
variables are ignored
I have a php script that worked fine on a random php server that I used. Now, however, I have installed php on my own computer and the script seems to work fine, but it just ignores the values I entered in a form. When I enable all error messages, I get the message that the variables are not defined, but I did not have this problem when I used this php web server.
It seems that I have to configure php differently, but how? Marco |
|
#2
|
|||
|
|||
|
RE: variables are ignored
first thing that comes to mind is that your script might be assuming register globals is turned on. if your old server had it turned on, but your new server has it off, the variables wouldn't work. how is the script getting the variables in from the form?
i'm guessing it isn't like this: $variable = $_POST['form_field_name_here']; let me know what you find out... |
|
#3
|
|||
|
|||
|
RE: variables are ignored
I assume you are referring to the line
register_globals = on/off in my php.ini? In my case this is set to off. Marco |
|
#4
|
|||
|
|||
|
RE: variables are ignored
I switched it on and it worked!
|
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > variables are ignored |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|