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 Quote 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. Quote 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 Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.