RE: [PHP-DB] Value of $_POST['submit']
| From: | YVES SUCAET | Date: | Fri, 28 Nov 2008 04:55:03 +0000 |
| Subject: | RE: [PHP-DB] Value of $_POST['submit'] | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-45744@lists.php.net to get a copy of this message | ||
Hi Steve,
He's using Ajax, so some variant of the XMLHttpRequest Javascript object on
the client. It may not be obvious which method is used when the data is sent.
Now that I think of it, printing $_SERVER[REQUEST_METHOD] should let you know
which one is being used.
hth.
Yves
------ Original Message ------
Received: Thu, 27 Nov 2008 08:48:08 PM CST
From: "Martin, Steve \(MAN-Corporate\)" <Steve.Martin@manheim.com>
To: "Yves Sucaet" <yves.sucaet@usa.net>, <php-db@lists.php.net>
Subject: RE: [PHP-DB] Value of $_POST['submit']
When I'm developing a number of pages and don't keep track of every
variable or form name (etc), I plant a print_r($_POST); at the top of
the page, so there's no guessing what gets sent to the page . . .
If you have an empty $_POST array, then the <form> isn't using
action=post, or you didn't code your button as type="submit" (?)
Just suggestions - since I can't see the code.
Steve
----- Original Message -----
From: "Ron Piggott" <ron.php@actsministries.org>
To: "PHP DB" <php-db@lists.php.net>
Sent: Thursday, November 27, 2008 7:02 PM
Subject: [PHP-DB] Value of $_POST['submit']
>I am working on the following web page tonight:
> http://www.actsministrieschristianevangelism.org/verseoftheday/
>
> I am trying to program the "Load Previous Issue" "Random Issue" and
> "Load Next Issue" buttons.
>
> I am using Ajax to pass the date the user is requesting to the PHP
> script for processing.
>
> I am wondering how my PHP script may access the value of value of
> $_POST['submit']. At present echo $_POST['submit']; doesn't give me a
> value. Consequently all queries to the mySQL database fail.
>
> Ron
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php