Re: Passing Form As Argument
| From: | Paul Novitski | Date: | Thu, 20 Apr 2006 23:51:21 +0000 |
| Subject: | Re: Passing Form As Argument | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-234430@lists.php.net to get a copy of this message | ||
At 03:46 PM 4/20/2006, Chris Kennon wrote:
I'm drafting a function.php page, which will be included() in the pages in need. How would I pass a form as an argument of a function?Unlike client-side JavaScript, server-side PHP doesn't see the client-side form. All PHP sees are the values of form fields submitted to the server. These are contained in either the $_GET array or the $_POST array, depending on your form method. See the PHP documentation: $_GET: http://php.net/manual/en/reserved.variables.php#reserved.variables.get $_POST: http://php.net/manual/en/reserved.variables.php#reserved.variables.post Paul