Re: [SMARTY] Problem with variables

From: Date: Thu, 14 Aug 2003 14:36:13 +0000
Subject: Re: [SMARTY] Problem with variables
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-10075@lists.php.net to get a copy of this message
The global variables are probably turned off (good thing!) so try to access the values as in: $username = $_POST['username']; $password = $_POST['password']; Avi On Thursday, Aug 14, 2003, at 09:07 America/Chicago, Tomek wrote:
After instaling php on the Apache, I have tried it with this simple page containing only one form: html page <html> <head> <title>test</title> </head> <body>
        <form action="post1.phtml" method="post">
            Name: <input type="text" name="Username"><br>
            Password: <input type="password" name="Password"><br>
            <input type="submit" name="Submit" value="Wy¶lij">
        </form>
</body> </html> post1 php page <html> <head> <title>Wydruk 3.1: post1.phtml</title> </head> <body> <?php
    print( "Nazwa u¿ytkownika: $Username<br>" );
    print( "Has³o: $Password<br>" );
?> </body> </html> unfortunately variables Username and Password are not visible in php file. I have no idea why. Please help me if you can Regards Tom -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.smarty.general (#10075) next »