get method doesn't work properly - 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: get method doesn't work properly (/showthread.php?tid=49461) |
get method doesn't work properly - El Forum - 02-20-2012 [eluser]mazzy[/eluser] this is my code in the view: Code: <form action="<?php echo site_url("search/send_mail?uid=$id"); ?>" method="post" accept-charset="utf-8" data-ajax="false"> and this is the function in my controller `search`: Code: function send_mail() I pass the value $id through get in the view but for a strange reason the get in controller give me a false as result. there is maybe a conflict between post and get? get method doesn't work properly - El Forum - 02-20-2012 [eluser]CroNiX[/eluser] Why not just send $id as the 3rd parameter in your form action and then grab it from the uri:egment(3)? search/send_mail/$id Code: function send_mail() |