Passing Form As Argument
| From: | Chris Kennon | Date: | Thu, 20 Apr 2006 22:46:40 +0000 |
| Subject: | Passing Form As Argument | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-234425@lists.php.net to get a copy of this message | ||
Hi,
I'm new to the list so "Hello" to all. 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? From the name parameter of the form element or perhaps an ID:
function checkForm(theForm){
//Form validation code omitted.
}
Also, I seem to recall some caution is needed when using user-defined functions?
"Art is an expression of life and transcends both time and space.
We must employ our own souls through art to give a
new form and a new meaning to nature or the world."
-- Bruce Lee_________________________________________________ Return True, Christopher Kennon Principal/Designer/Programmer -Bushidodeep http://bushidodeep.com