This script does not act properly - why?
From: Piet (p.potjer_at_chello.nl)
Date: 03/29/04
- Next message: John Smith: "Online Shopping Similar to OS Commerce"
- Previous message: vickie_raven: "question on readfile()"
- Next in thread: Andy Hassall: "Re: This script does not act properly - why?"
- Reply: Andy Hassall: "Re: This script does not act properly - why?"
- Reply: Tyrone Slothrop: "Re: This script does not act properly - why?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 29 Mar 2004 19:16:54 GMT
I run the following script:
<html>
<head>
<title>Gastenboek</title>
</head>
<body>
<?php
echo "<h2>Een eenvoudig gastenboek</h2>\n";
echo "<form action=\"$PHP_SELF\" method=\"post\">\n";
echo "<p>Uw naam: <input type = \"text\" name = \"naam\"></p>\n";
echo "<p>Uw mail: <input type = \"text\" name = \"email\"></p>\n";
echo "<p>Uw commentaar:</p>\n";
echo "<textarea cols = \"55\" rows = \"5\" wrap = \"soft\" name =
\"commentaar\">
</textarea><br>\n";
echo "<p><input type = \"submit\" value=\"Commentaar verzenden\"></p>\n";
if (submit) {$teller++;}
echo "<hr>\n";
echo "<p><h2>Reeds geleverd commentaar</h2></p>\n";
if (isset($commentaar) && naam != "" && email != "")
{
echo "Test";
}
?>
</body>
</html>
ASfter pressing the button I expect to see "test". But only the filled in
fields are cleaned, and nothing else is happening.
Can anyone tell me why "test" does not appear?
Thanks.
Piet
- Next message: John Smith: "Online Shopping Similar to OS Commerce"
- Previous message: vickie_raven: "question on readfile()"
- Next in thread: Andy Hassall: "Re: This script does not act properly - why?"
- Reply: Andy Hassall: "Re: This script does not act properly - why?"
- Reply: Tyrone Slothrop: "Re: This script does not act properly - why?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]