Wow!! It worked... Sorry for the confusion about the get!! Thanks guys, i can go further!!! Have a nice weekend!
Regards, Frank ----- Original Message ----- From: "Rich Gray" <[EMAIL PROTECTED]> To: "Frank Keessen" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Saturday, January 25, 2003 12:42 PM Subject: RE: [PHP] If... Else.. I'm not getting it! > You are using the post method not get so $_GET[] should be empty. > > Does this version of your code work? > > <?php > if(isset($_POST['submit'])) { > $vname=$_POST['vname']; > echo "hello $vname"; > } else { > ?> > <form action="<? echo ($_SERVER['PHP_SELF']); ?>" method=post> > <table> > <tr><td>Input yourname</td><td><input type=text name=vname></td></tr> > <tr><td colspan=2><input type=submit name=submit></td></tr> > </table> > </form> > <?php > } > ?> > > Rich > -----Original Message----- > From: Frank Keessen [mailto:[EMAIL PROTECTED]] > Sent: 25 January 2003 11:33 > To: Johannes Schlueter; [EMAIL PROTECTED] > Subject: Re: [PHP] If... Else.. I'm not getting it! > > > Hi, > > Thanks, but i'm a kind of a newbie in PHP and what i've read it's better to > have the register_globals = Off!!! If you look at my code you see that i'm > using the $_GET variable.. This works fine!! It's the IF.. ELSE what gives > me a lot of trouble! > > Frank > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php