> 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 butt
I would quote get in method="get" and end the 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,
http://www.vanceconsulting
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
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
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 work
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 i
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 "
>
> ";
> }
> ?>
> Sascha
The value of name for the subm
register_globals defaults now to off. Use the superglobals instead.
";
}
?>
Sascha
Am Sonntag, 13. Oktober 2002 23:40 schrieb 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 "
>
8 matches
Mail list logo