XAMPP Windows, PHP, Variable leer

Alles, was PHP betrifft, kann hier besprochen werden.

XAMPP Windows, PHP, Variable leer

Postby Fussel » 29. July 2007 09:03

Hallo Forum,

dieser Code funktioniert auf dem Account von meinem Web-Provider, aber nicht auf meiner lokalen XAMPP-Installation (WinXP Pro, XAMPPlite 1.6.3):

<form action="test.php" method="post">
blabla:<br><input name="blabla" type="text">
<input type="submit" name="senden" value="Eintragen">
</form>

test.php:
<?
echo ($blabla);
echo ("Test");
?>

Erzeugt die Ausgabe:
Test

Die Variable $blabla ist immer leer (auch mit GET).

Der phpinfo()-Link auf der XAMPP-Seite sagt:
Loaded configuation file:C:\xampplite\apache\bin\php.ini
Configuartion file (php.ini) path: C:\Windows

Muss ich irgendwie eine globale Gültigkeit für Variablen einstellen? Hat jemand eine Idee?

Danke an alle!
Fussel
 
Posts: 2
Joined: 29. July 2007 08:46

Postby Wiedmann » 29. July 2007 09:26

Code: Select all
<form action="test.php" method="post">

Code: Select all
echo ($blabla);

-->
Code: Select all
echo $_POST['blabla'];

Siehe:
http://de.php.net/manual/en/language.va ... ternal.php
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby Fussel » 29. July 2007 09:37

Wiedmann wrote:
Code: Select all
echo $_POST['blabla'];

Siehe:
http://de.php.net/manual/en/language.va ... ternal.php


Funktioniert! Danke!
Fussel
 
Posts: 2
Joined: 29. July 2007 08:46


Return to PHP

Who is online

Users browsing this forum: No registered users and 24 guests