abraxas@debian
11-18-2002, 12:39 PM
ok, my prob:
on my pc, i've got an apache server (1.3.26) with dynamic php support (php 4.2.3). to explain my problem just look an the following code:
<form name="formular1" action="formular1.php" method="get">
Quadrieren:<input type=text name=zahl></input><br><br>
<input type=submit name=rechnen value=ausrechnen></input>
</form>
<?php
if($rechnen){
$quadrat=$zahl*$zahl;
echo "Das Quadrat ist <b><font color=#0020FF>$quadrat</font></b>";
}
?>
yes, it's in german *gg*. the problem is that php can't access the variable "rechnen" from the form.
the script sould work at all. "rechnen" has "ausrechnen" as a string-value so i don't know why php can't use it. other php-scripts with no form content works well.
that's very bad and i'm glad about every idea ;-)).
I think it has somethink to do with the php.ini (the php-options file)
ok, i count on you *gg*, abraxas
Copyright: This code was taken from the book "Dynamische Webseiten mit PHP" by Jochen Franke http://www.jochen-franke.de/
on my pc, i've got an apache server (1.3.26) with dynamic php support (php 4.2.3). to explain my problem just look an the following code:
<form name="formular1" action="formular1.php" method="get">
Quadrieren:<input type=text name=zahl></input><br><br>
<input type=submit name=rechnen value=ausrechnen></input>
</form>
<?php
if($rechnen){
$quadrat=$zahl*$zahl;
echo "Das Quadrat ist <b><font color=#0020FF>$quadrat</font></b>";
}
?>
yes, it's in german *gg*. the problem is that php can't access the variable "rechnen" from the form.
the script sould work at all. "rechnen" has "ausrechnen" as a string-value so i don't know why php can't use it. other php-scripts with no form content works well.
that's very bad and i'm glad about every idea ;-)).
I think it has somethink to do with the php.ini (the php-options file)
ok, i count on you *gg*, abraxas
Copyright: This code was taken from the book "Dynamische Webseiten mit PHP" by Jochen Franke http://www.jochen-franke.de/