Re: Strange Problem
| From: | GEN-Host.Com | Date: | Thu, 26 Oct 2000 00:37:01 +0000 |
| Subject: | Re: Strange Problem | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-3907@lists.php.net to get a copy of this message | ||
Maybe this will help:
<html>
<form method="POST" action="<?=$PHP_SELF?>">
Please enter your user name:<br>
<input type=text name=name>
<input type=submit value="Submit Data">
</form>
<?
if (isset($name)) {
echo "Welcome $name"; }
?>
</html>
----- Original Message -----
From: Jason Stechschulte <jpstech@nc.edu>
To: True Software Solutions Private Limited <info@truesoft.net>;
<php-db@lists.php.net>
Sent: Wednesday, October 25, 2000 11:01 AM
Subject: RE: [PHP-DB] Strange Problem
> Make some changes to <form> Make it:
> <form method=get action="<?=$PHP_SELF?>">
>
> Since you never defined <form> this is not working like you are
> expecting it to.
>
> Jason Stechschulte
> jpstech@nc.edu
>
> -----Original Message-----
> From: True Software Solutions Private Limited
> [mailto:info@truesoft.net]
> Sent: Wednesday, October 25, 2000 12:11 PM
> To: php-db@lists.php.net
> Subject: [PHP-DB] Strange Problem
>
>
> Dear Friends,
>
> I have just started working on PHP, and am facing a strange
> problem, I tried
> to run a small application : -
>
> **********************
> <html>
> <form>
> Please enter your user name :<br>
> <input type=text name=name>
> <input type=submit value="Submit Data">
> </form>
>
> <?
> echo("Welcome ");
> echo($name);
> ?>
> </html>
> **********************
>
> Now, it echo's the line "Welcome " but $name never gets printed.
> Please try
> to run this script on you system and see if you also get the same
> problem.
>
> I will appriciate if anyone can help it out (I am using PHP 4.0
> with
> Microsoft Personal Web Server).
>
> Best Regards,
> Ashish Chamoli
> True Software Solutions Private Limited
> 515, Suneja Tower - II,
> 12 District Centre Janakpuri,
> New Delhi - 110058 (India)
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>