![]() |
Post values not populated after form submit. - 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: Post values not populated after form submit. (/showthread.php?tid=27605) |
Post values not populated after form submit. - El Forum - 02-16-2010 [eluser]sustbird[/eluser] I have a form. When i submit, post values are not populated. My form code is: Code: <?php In my controller, my code is: Code: function add() { After submitting, it shows: 'Period Closing not submitted.' i.e $submit value not pupulated! I am stuck with this. Please help. Post values not populated after form submit. - El Forum - 02-16-2010 [eluser]maria clara[/eluser] [quote author="sustbird" date="1266324260"] In my controller, my code is: Code: function add() { [/quote] try putting print_r($_POST); Code: function add() { i advise you to use firebug to see your error in the console. Post values not populated after form submit. - El Forum - 02-16-2010 [eluser]sustbird[/eluser] print_r($_POST); gives an empty array. One strange thing is that, if i click multiple times, randomly sometime this value is populated and most of the time it does not. It is so fraustrating......... ![]() Post values not populated after form submit. - El Forum - 02-16-2010 [eluser]maria clara[/eluser] [quote author="sustbird" date="1266327968"]print_r($_POST); gives an empty array. One strange thing is that, if i click multiple times, randomly sometime this value is populated and most of the time it does not. It is so fraustrating......... ![]() ahh ok. your post is empty that's why its not populating. please post your code. Post values not populated after form submit. - El Forum - 02-16-2010 [eluser]sustbird[/eluser] Hi clara, I have given my code on my post above. I have tested on firefox, where it works perfectly! But my users are on IE7 based. I am astonished why PHP is puzzled with browser?? Please suggest what should i do now. |