Re: Invalid Arguements
| From: | Nathan Rixham | Date: | Wed, 19 Nov 2008 19:59:34 +0000 |
| Subject: | Re: Invalid Arguements | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-283571@lists.php.net to get a copy of this message | ||
Ashley Sheridan wrote:
On Wed, 2008-11-19 at 08:31 -0600, Terion Miller wrote:have you read the manual mate? "Note: implode() can, for historical reasons, accept its parameters in either order. For consistency with explode(), however, it may be less confusing to use the documented order of arguments." this one is a simple one though, his form is wrong (as stated before); html form should have multiple: <input type="xxx" name="BannerSize[]" ... /> so that an array is passed, but it'll only have: <input type="xxx" name="BannerSize" ... /> thus passing no array to $_POST['BannerSize'], thus implode won't work as neither param is an array. :pI am still getting the Invalid arguement error on this implode: if (isset($_POST['BannerSize'])){$BannerSize = implode(',',$_POST['BannerSize']);} else {$BannerSize = "";} I have moved the ',', from the beginning to the end of the statement and nothing works is there any other way to do this, basically there is a form and the people entering work orders can select different sized banners they need, which goes into the db as text ....so...argh...As mentioned quite a few times before, you cannot change the order of the arguments, it will not work! There is no indicator in the PHP Manual page for this function either that says you can switch the orders, so I'm not sure why you think you can. Ash www.ashleysheridan.co.uk