![]() |
How send mail the name country and not id? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: How send mail the name country and not id? (/showthread.php?tid=48974) |
How send mail the name country and not id? - El Forum - 02-03-2012 [eluser]amina[/eluser] I have a depended select. I try to place in the view in option value rowz->name but if I place it does not take me go of cities too I try concant but it didn't work My model: Code: function getCountry(){ In the getCity I could concant the name city for send mail My view: Code: <label for="f_country"class="label">Country</label> Thanks How send mail the name country and not id? - El Forum - 02-03-2012 [eluser]leela[/eluser] you are using the space in $rowz->name after ->... This could be the reason How send mail the name country and not id? - El Forum - 02-03-2012 [eluser]amina[/eluser] thanks for response but it works fine. My problem is option value $rowz->id; that I can't concant $rowz->name for that in the send mail appears the name country and not id_country. How send mail the name country and not id? - El Forum - 02-03-2012 [eluser]CroNiX[/eluser] Code: $output .= '<option value="' . $item->id . '-' . $item->name . '">' . $item->name . '</option>'; Code: <option value="<?php echo $rowz->id; ?>"><?php echo $rowz->name; ?></option> How send mail the name country and not id? - El Forum - 02-03-2012 [eluser]amina[/eluser] thanks, but in the sended mail appears the id country and not the name of the country, for this line Code: <option value="<?php echo $rowz->id; ?>"><?php echo $rowz->name; ?></option> because in the option value I have $rowz->id, but if I change $rowz->name, don't work. In this line works fine Code: $output .= '<option value="' . $item->id . '-' . $item->name . '">' . $item->name . '</option>'; I want to do the same in country How send mail the name country and not id? - El Forum - 02-03-2012 [eluser]leela[/eluser] just make a die there what are the values it is having so that you can find the reason How send mail the name country and not id? - El Forum - 02-03-2012 [eluser]InsiteFX[/eluser] Try this: Code: <option value="<?php echo $rowz->id.'-'.$rowz->name; ?>"><?php echo $rowz->name; ?></option> How send mail the name country and not id? - El Forum - 02-04-2012 [eluser]amina[/eluser] thanks for response your solution works fantastic!!! Thankssssss |