Re: Invalid Arguements

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

 



Actually it did at one point have bannersize[#] # being the numbers
1-however many were there
I've since gotten rid of that and made it a select.
and gotten rid of the implode all together because it wouldn't work in
either case and the more I read the more confused I got.
Terion

On Wed, Nov 19, 2008 at 1:59 PM, Nathan Rixham <nrixham@xxxxxxxxx> wrote:

> Ashley Sheridan wrote:
>
>> On Wed, 2008-11-19 at 08:31 -0600, Terion Miller wrote:
>>
>>> I 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
>>
>>
> 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.
>
> :p
>
> --
> 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