[PHP] Passing Form As Argument

2006-04-20 Thread Chris Kennon
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 val

[PHP] heredoc syntax vs Double-Quotes

2006-03-15 Thread Chris Kennon
Hi, Not looking to start some pugilistic fray, but when is using heredoc advisable over Double-Quotes? Return True, Christopher Kennon Principal/Designer/Programmer -Bushidodeep http://bushidodeep.com/ __ "Knowing is not enough, you must apply; willing i

[PHP] Basic OOP Question

2006-01-26 Thread Chris Kennon
Hi, This is my first post so a cheery hello, this script from php.net: [www.php.net] var; } } mySimpleClass = new SimpleClass(); ?> Returned this: Parse error: parse error, unexpected T_STRING, expecting T_FUNCTION in /Users/chris/Sites/php/oop/simple.php on line 4 I'm running PHP