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" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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>



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to