![]() |
problem passing POST values - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: problem passing POST values (/showthread.php?tid=39902) |
problem passing POST values - El Forum - 03-24-2011 [eluser]bret[/eluser] I've been reading multiple forum posts about this but cannot seem to figure out my issue. I'm trying to pass POST values to my controller. I've tried removing my .htaccess just to see if it will work without, but no luck. The profiler output is below, and shows the post data of my submit button, labeled Register. My base url has the "/" at the end. Anyone have any suggestions for me? ![]() View code: Code: <?php echo form_open('index.php/register/process_register') . "\n"; ?> Controller code: Code: $email_address = $this->input->post('email_address'); Profiler output: POST DATA $_POST['register'] Register I also did a print_r($_POST); and got the same result of just the Register button. Anyone know why I get the POST data for the submit button, but not for the email_address and password fields? Thanks in advance. ![]() problem passing POST values - El Forum - 03-24-2011 [eluser]WanWizard[/eluser] Read the section in the user guide about Form helpers. You'll find that you need to include at least a fieldname when calling functions like "form_input". problem passing POST values - El Forum - 03-24-2011 [eluser]bret[/eluser] I guess that's what happens when I try to stay up until 5am writing code. lol Thanks for finding my ridiculous error. |