rabesh Posted June 7, 2011 Share Posted June 7, 2011 Helloo guys, I need help on check box. i check box containing different value using this code <input type="checkbox" value="" name="find[]" /> after that i used php code to receive the post data using the following code $find = $_POST['find'] ; $n = count($find); for($i=0; $i < $n; $i++) { $display=($find[$i] . " "); } then i try to send that posted data to mail using the code mail function for that i create a variable and send like this mail($to,$subject,$display, $headers); but blank array was send How to solve this plz help me thanks Link to comment https://forums.phpfreaks.com/topic/238629-need-help-on-check-box/ Share on other sites More sharing options...
WebStyles Posted June 7, 2011 Share Posted June 7, 2011 code is fine, but you need to implode the array before emailing it. Link to comment https://forums.phpfreaks.com/topic/238629-need-help-on-check-box/#findComment-1226328 Share on other sites More sharing options...
rabesh Posted June 7, 2011 Author Share Posted June 7, 2011 But i dont know to implode the array can u help me sending the code Link to comment https://forums.phpfreaks.com/topic/238629-need-help-on-check-box/#findComment-1226335 Share on other sites More sharing options...
WebStyles Posted June 7, 2011 Share Posted June 7, 2011 http://pt.php.net/manual/en/function.implode.php Link to comment https://forums.phpfreaks.com/topic/238629-need-help-on-check-box/#findComment-1226407 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.