hi,
im tring to make a form with checkbox and i used
Selection: " . implode(',', $checkbox ) . "\n
im reciving the data tomy mail, but when there is nothing checked im getting this error:
implode() [function.implode]: Invalid arguments passed in ....

what script can i add thatwhen nothing is checked i wont get this error?

thanks:))

You can put the condition if $checkbox contains item then use implode otherwise just avoid using implode...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.