RE: [PHP-WIN] Re: Form Problem
| From: | brother | Date: | Thu, 06 Jun 2002 15:27:07 +0000 |
| Subject: | RE: [PHP-WIN] Re: Form Problem | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-14108@lists.php.net to get a copy of this message | ||
Or change the $submit to $_GET["submit"]
if (isset($_GET["submit"])) {
mysql_query("INSERT INTO $ntable VALUES
('','$title','$posted_by','$entry',NULL)");
print("$title<br>\n");
print("Posted by $posted_by<br>\n");
print("$entry\n");
}
/brother
> -----Original Message-----
> From: Ilker Cetinkaya [mailto:ilker.cetinkaya@ease.de]
>
> it seems as if register_globals option is turned off and
> therefore $submit
> is not set.
>
> hth
> ilker
>
>
> "James Meers" <jambo@venda.com> wrote in message
>
> news:2BA3903C0E9C284F9AA18B2E123CF5ED1D1FEF@VENDAC01.uk.venda...
>
> if (isset($submit)) {
> mysql_query("INSERT INTO $ntable VALUES
> ('','$title','$posted_by','$entry',NULL)");
>
> print("$title<br>\n");
> print("Posted by $posted_by<br>\n");
> print("$entry\n");
> }