RE: [PHP-DB] Strange Problem

From: Date: Wed, 25 Oct 2000 22:47:47 +0000
Subject: RE: [PHP-DB] Strange Problem
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-3898@lists.php.net to get a copy of this message
Hi, From what I've seen of your code snipplet, you didn't set any value to the $name variable. It's probably priting the variable except that there is nothing in it so it's a correct behaviour ie print a blank. Try assigning a value to your variable like $name = "Testing"; Then try to echo() it. > -----Original Message----- > From: True Software Solutions Private Limited [mailto:info@truesoft.net] > Sent: Thursday, October 26, 2000 2:11 AM > 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 >

« previous php.db (#3898) next »