newsletter yes or no - 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: newsletter yes or no (/showthread.php?tid=5164) |
newsletter yes or no - El Forum - 01-09-2008 [eluser]josh48202[/eluser] i want the option to allow users to be able to receive newsletters. so in there user profile i want it to ask them if they want to receive it or not with the option of yes or no. how would i do this? newsletter yes or no - El Forum - 01-09-2008 [eluser]Craig A Rodway[/eluser] Add the necessary field to your database users table, and use either a checkbox or a dropdown box for Yes/No. Then code your controller/model to update the database from the choice. newsletter yes or no - El Forum - 01-09-2008 [eluser]josh48202[/eluser] you wouldnt happen to know the code to do this would you. im still pretty new? newsletter yes or no - El Forum - 01-09-2008 [eluser]Derek Allard[/eluser] Absolutely. Code for generating a form is here. Code for reading forms is here Code for how to insert into a db can be found here newsletter yes or no - El Forum - 01-09-2008 [eluser]josh48202[/eluser] awesome thanks!!! |