Re: [PHP] Simple HTML-Form Question

2002-10-14 Thread Maxim Maletsky
Has there changed something in PHP-Coding since I've learned it a few years before? Since PHP v4.1.0 you access $name as $_GET['name'], unless you change register_globals in php.ini to 'on' so it gets to how it used to be before. There seems to be a diffrence between clicking the send button

[PHP] Simple HTML-Form Question

2002-10-13 Thread Lars H. Korte
Hi, I've updated to PHP 4.2.3 and wrote this simple Script: ? if (isset($name)) { echo Hallo $name; } else { echo FORM action='test.php' method=get input type=text name=name input type=submit name=action value=sendit; } ? I would expect the following: The site starts with the

Re: [PHP] Simple HTML-Form Question

2002-10-13 Thread Sascha Cunz
register_globals defaults now to off. Use the superglobals instead. ? if (isset($_GET['name'])) { echo Hallo .$GET['name']; } else { echo FORM action='test.php' method=get input type=text name=name input type=submit name=action value=sendit; } ? Sascha Am Sonntag, 13. Oktober

Re: [PHP] Simple HTML-Form Question

2002-10-13 Thread Chip Wiegand
Sascha Cunz wrote this stuff back on Mon, 14 Oct 2002 00:09:58 +0200: register_globals defaults now to off. Use the superglobals instead. ? if (isset($_GET['name'])) { echo Hallo .$GET['name']; } else { echo FORM action='test.php' method=get input type=text name=name

Re: [PHP] Simple HTML-Form Question

2002-10-13 Thread Sascha Cunz
This beautifies it (even makes it a bit more secure), but one doesn't need it really; should have worked without these changes, too. (Of course, it's better to include these changes) Sascha The value of name for the submit button is wrong - it should be the same as the value you gave the

Re: [PHP] Simple HTML-Form Question

2002-10-13 Thread Chip Wiegand
Sascha Cunz wrote this stuff back on Mon, 14 Oct 2002 01:13:53 +0200: This beautifies it (even makes it a bit more secure), but one doesn't need it really; should have worked without these changes, too. (Of course, it's better to include these changes) Sascha No it shouldn't have worked

Re: [PHP] Simple HTML-Form Question

2002-10-13 Thread @ Edwin
Hello, Just for the sake of the argument... On Monday, October 14, 2002 10:44 AM Chip Wiegand wrote: Sascha Cunz wrote this stuff back on Mon, 14 Oct 2002 01:13:53 +0200: This beautifies it (even makes it a bit more secure), but one doesn't need it really; should have worked without

Fw: Re: [PHP] Simple HTML-Form Question

2002-10-13 Thread Chip Wiegand
Yep, I've been going over this with John off-list, I learned something new tonite. One thing about his script - it doesn't print the text entered in the box, it only prints the work Hallo. To fix that would require adding . $name; to the end of the echo statement. Regards, -- Chip Edwin wrote

Re: Fw: Re: [PHP] Simple HTML-Form Question

2002-10-13 Thread Keith Vance
I would quote get in method=get and end the /form for starters. Keith Vance Vance Consulting LLC www.vanceconsulting.net (206) 355-2399 Try my open source PHP authentication system, Rampart by visiting http://rampart.sourceforge.net/. Commercial support is available at,