Jump to content

checkbox array saved into a varible that can be sent in a email.


denoteone

Recommended Posts

I have check box inputs in an html form that all have the name="content[]" on submit how can I save all of the items checked into a variable that I can echo. so if the boxes below are all check it could echo $content;    would show  name1name2name3

<input type="checkbox" name="content[]" value="name1">Name 1

<input type="checkbox" name="content[]" value="name2">>Name 2

<input type="checkbox" name="content[]" value="name3">>Name 3

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.