• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Resolved: Form helper not working...

#1
[eluser]regal2157[/eluser]
Just want to give some background. I'm working on someone's site, which is a 1.7 version of CI. I will eventually upgrade it, but that is not the companies priority.. (I'm not developing anything huge either, so it doesn't bother me as I am not making a huge system twice then)

Anyways, in the view, I use the form helper, such as:
Code:
<?php
form_open('location');
?>
Put something in the input box:
<?php
form_input('','');
form_submit('','');
form_close();

When I view the page via the controller, All that is returned is "Put something in the input box:" Even the source has no form elements.

The form helper is in the autoload, and since it wasn't working there, I put it in the corresponding controller. I've tried it with it initialized in both, and just the controller.

Any ideas?


EDIT: (I can't delete the topic)
I just realized afterwards that I didn't include the echo part on each line! Silly me!


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.