WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Linux, UNIX, Open Source (http://www.wcm.at/forum/forumdisplay.php?f=13)
-   -   Apache und PHP - Variablen werden aus HTML-Forms nicht übergeben (http://www.wcm.at/forum/showthread.php?t=92897)

tcs 01.04.2003 20:00

Apache und PHP - Variablen werden aus HTML-Forms nicht übergeben
 
Hi,

folgendes Problem hat sich hier aufgetan:
Mit

<input type="radio" name="todo" value="rechnen"> Primfaktorzerlegung

möchte ich an eine php-function, definiert folgendermaßen:

<form action="pruef_prim.php" method="post">

den Inhalt des Feldes todo und zahl übergeben.
Unter Windows funktionierte das alles ganz prächtig, mit einem Linux geht´s nicht mehr.
Mit

echo "Eingabe: $zahl";

kommt nix zurück...

Weiß da jemand Rat?

Gruß und Danke im voraus

TCS

Philipp 01.04.2003 22:13

Welche PHP / Linux Version?

Probiere: $_POST["zahl"] statt $zahl

paux 02.04.2003 14:28

@tcs: wenn philipp's variante funktioniert und du nicht alle deine scripts umändern willst, setze "register_globals = On" in /etc/php.ini

tcs 02.04.2003 20:53

Hi, vielen Dank für die Tips, mit register_globals=On funktioniert die Sache!
Bloß... jetzt muß ich schauen, daß ich die Kiste wieder dicht mache... ;)

Gruß, nochmal Danke

TCS


Alle Zeitangaben in WEZ +2. Es ist jetzt 02:03 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag