Jump to content

posting checkboxes


hassank1

Recommended Posts

echo "<input name=\"$message[MID]\" type=\"checkbox\" id=\"$message[MID]\" value=\"$message[MID]\">";

 

so I think I must change it to :

 

echo "<input name=\"check[]\" type=\"checkbox\" id=\"check[]\" value=\"$message[MID]\">";

  ??

 

 

however , the check[] array will only contain the checked values right ?

Link to comment
https://forums.phpfreaks.com/topic/105272-posting-checkboxes/#findComment-539056
Share on other sites

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.