![]() |
Pass parser class variables to php function. - 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: Pass parser class variables to php function. (/showthread.php?tid=31476) |
Pass parser class variables to php function. - El Forum - 06-21-2010 [eluser]adaxa[/eluser] Hi everyone, I have problem with parser class. What I have is a form with dropdown-list which I try to repopulate with last selected city on submit. For example I have this: Code: {cities_list} But this doesn`t work Pass parser class variables to php function. - El Forum - 06-21-2010 [eluser]adaxa[/eluser] *BUMP* Pass parser class variables to php function. - El Forum - 06-21-2010 [eluser]danmontgomery[/eluser] You can't pass template variables into PHP code, you need to separate the two. I'd suggest you use form_dropdown() instead of trying to use set_select() with the template parser. Pass parser class variables to php function. - El Forum - 06-24-2010 [eluser]adaxa[/eluser] Thanks |