![]() |
Form Helper help.. - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: Form Helper help.. (/showthread.php?tid=43531) |
Form Helper help.. - El Forum - 07-14-2011 [eluser]psychoder[/eluser] Controller: Code: $attributes = array('name' => 'student_form', 'id' => 'student'); View: Code: echo $output; i want to have this..... Code: <form action='' name='student_form' id='student'> the result is Code: <form action='http://localhost:8080/Codeigniter_try/index.php/' name='student_form' id='student'> how can i use Code: form_open i wanna use ajax... tnx in advance... regards... Form Helper help.. - El Forum - 07-14-2011 [eluser]Eric Barnes[/eluser] The action automatically inserts. The best way in your case is to just over ride in the ajax call. Code: $('#student').submit(function(){ Form Helper help.. - El Forum - 07-15-2011 [eluser]Zaher Ghaibeh[/eluser] have you tried this one : Code: form_open(''); Form Helper help.. - El Forum - 07-15-2011 [eluser]Eric Barnes[/eluser] [quote author="Zaher Ghaibeh" date="1310736556"]have you tried this one : Code: form_open(''); That will not work any longer. Via the change log - Quote:Changed the logic for form_open() in Form helper. If no value is passed it will submit to the current URL. Form Helper help.. - El Forum - 07-15-2011 [eluser]Zaher Ghaibeh[/eluser] [quote author="Eric Barnes" date="1310753648"][quote author="Zaher Ghaibeh" date="1310736556"]have you tried this one : Code: form_open(''); That will not work any longer. Via the change log - Quote:Changed the logic for form_open() in Form helper. If no value is passed it will submit to the current URL.[/quote] thanks for correcting me .. Form Helper help.. - El Forum - 07-17-2011 [eluser]psychoder[/eluser] tnx guys for the replies... tnx eric for helping me out... regards... |