Re: Function Prolem parse error

From: Date: Sun, 04 Nov 2001 18:24:46 +0000
Subject: Re: Function Prolem parse error
References: 1 2 3  Groups: php.db 
Request: Send a blank email to php-db+get-13995@lists.php.net to get a copy of this message
On Monday 05 November 2001 04:45, Darren wrote: [snip] > // string hidden_field ([string name [, string value]]) > > // This function returns an HTML hidden field. A value may be > supplied. > > function hidden_field ($name="", $value="") > { > $output = print("<input type=\"hidden\" name=\"$name\" > value=\"$value">"); > > return $output; > } > > I still don't understand what the fix should be or what is wrong. You can just define that function as: function hidden_field($name, $value) { blah... blah... } hth -- Jason Wong Gremlins Associates www.gremlins.com.hk

« previous php.db (#13995) next »