The field name in the <form> is "user_name", and the echo is for "name". Are
you copying the value from $user_name to $name at some point?

Kirk

> -----Original Message-----
> From: ML [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 20, 2003 2:04 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] missing simple php functionality
> 
> 
> Hello all. Im having a strange problem. My php outputs html 
> correctly, and
> Ive tried other builtin functions like date and that works 
> too. But when I
> try to do something as simple as passing a value from a form 
> to a php file
> and display that value, no go.
> 
> the HTML:
>     <html>
>     <body>
>     <h1>Enter Your Name</h1>
>     <form action="simplephp.php" action="POST">
>     <input type="text" size="20" maxlength="20" name="user_name">
>     <input type="submit" value="Submit Your Name">
>     </form>
>     </body>
>     </html>
> 
> the PHP file:
> <?php
> echo "Your name is $name";
> ?>
> 
> I fill in my name, I click submit, and where the name should 
> be displayed it
> shows nothing. I have gone over this again and again and I 
> just don't know
> whats wrong. I also noticed that register globals was OFF so 
> I just turned
> that on, but still I have the same problem....any ideas? I 
> really appreciate
> any feedback. Thank you!
> 
> -Mike L

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

Reply via email to