Re: Re: WinXP Error Passing Variables (and creating)

From: Date: Wed, 20 Feb 2002 22:54:27 +0000
Subject: Re: Re: WinXP Error Passing Variables (and creating)
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-12165@lists.php.net to get a copy of this message
Yours did not work as it either. Thanks for the attempt. Although a few things about your code that I thought my be the problem: - You had "<? " and not "<?php" ... even after changing that it had the same affect (I do not know if that is okay or not, that's why I changed it) -The "action" setting is seen as not even a blank space when coverted to HTML (because it unassigned or is that server default variable?) -Everything else was normal and I've seen before and it still does not work. I guess I will definately be getting Linux. THANK YOU for trying to help me get this work. I wish I could simply use XP for this stuff, but I don't have a problem getting Linux and using it either so thank you! "Ross Fleming" <r.fleming@totalise.co.uk> wrote in message news:MABBLJAPGGBPMIPHMAGBCEEHCFAA.r.fleming@totalise.co.uk... > Try this instead. I couldn't get Devon's to work on my system either, but > this one does. Note the use of the empty() function which tests a string > for emptiness. > > Let me know if it works? > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> > <html> > <head> > <title>Test Form</title> > </head> > <body> > <? > if (empty($username)) > { > echo " > <form method=post action=".$PHP_SELF."> > <input type=\"text\" name=\"username\"><br> > <input type=\"submit\" value=\"Post Data\"> > </form><i>No data yet, or username is empty.</i>"; > } > > > else > { > echo "<b>Username:</b> " . $username; > } > > > ?> > </body> > </html>

« previous php.windows (#12165) next »