Page 1 of 1

PHP und Formulare

Posted: 2003-05-17 12:07
by quovis
Hallo

nach einem Serverumzug hab ich ein Problem mit PHP und Formularen.

Ich habe in einem Formular einen Check, ob eine Variable belegt ist, also das Feld ausgefüllt wurde.
Leider kommt bei einigen Usern der Fehler, dass das Feld nicht ausgefüllt wurde, obwohl sie es 100%ig ausgefüllt haben. Woran könnte es liegen?

Re: PHP und Formulare

Posted: 2003-05-17 12:27
by mark
Hi,

register_globals = on ?

Alte Software will das auf off haben...

gruß
Mark

Re: PHP und Formulare

Posted: 2003-05-17 12:33
by quovis
also, mein PHPINFO zeigt:

register_globals On On

daran liegst also nicht

Re: PHP und Formulare

Posted: 2003-05-17 12:36
by mark
Quovis wrote:also, mein PHPINFO zeigt:

register_globals On On

daran liegst also nicht
Ã?hm. mein ich ja so rum.

off = new (sicherer), on = alt (unsicher)

Aber warum das script dann nicht funkioniert ? Keine Ahnung.
Ferndiagnose ist da schwer. Noch jemand eine Idee ?

Gruß
mark

Re: PHP und Formulare

Posted: 2003-07-03 01:08
by root-frager
<form>
<input type ='text' name='bar'>
</form>

alte einstellung:
$barNachPost=$bar

neue Einstellung:
$barNachPost=$_POST['bar'];


vielleicht liegts daran?