Re: Passing Form As Argument

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux