![]() |
form not displaying - 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: form not displaying (/showthread.php?tid=35547) |
form not displaying - El Forum - 11-02-2010 [eluser]clustermagnet[/eluser] Guys, writing this form, code below... The page does not display correctly THANKS! ################## <?=form_open(base_url() . 'useradmin/login')?> <fieldset> <legend>Login Form</legend> <ul> <li> <label>Email</label> <?=form_input('userEmail',set_value('userEmail'))?> </li> <li> <label>Password</label> <?=form_password('userPassword')?> </li> <li> <?form_submit('', 'Login')?> </li> </ul> </fieldset> <?=form_close()?> form not displaying - El Forum - 11-02-2010 [eluser]clustermagnet[/eluser] Here is the screen cap form not displaying - El Forum - 11-02-2010 [eluser]Christophe28[/eluser] You forgot '=' after your form_submit opening tag. This should be better: <?=form_submit(’‘, ‘Login’)?> If it doesn't throw you an error, it is usually because you forgot 'echo' or 'print' or '=' like this case. Christophe form not displaying - El Forum - 11-02-2010 [eluser]tonanbarbarian[/eluser] can think of 2 things off the top of my head 1. css is hiding the form elements somehow 2. form helper not loaded have a look at the html produced and see if any of the form elements have been added if not then the first thing you need to do, at least while developing, is turn on full error reporting in php so the errors can be displayed then you need to load the form helper and try again form not displaying - El Forum - 11-02-2010 [eluser]clustermagnet[/eluser] form helper has been enabled via autoloaders.php checking css ![]() thanks! form not displaying - El Forum - 11-02-2010 [eluser]Christophe28[/eluser] [quote author="Christophe28" date="1288758394"]You forgot '=' after your form_submit opening tag. This should be better: <?=form_submit(’‘, ‘Login’)?> If it doesn't throw you an error, it is usually because you forgot 'echo' or 'print' or '=' like this case. Christophe[/quote] Have you seen my reply? This will be probably the problem and not the CSS. Why should you ever set an input->submit to hidden ;-) Christophe form not displaying - El Forum - 11-02-2010 [eluser]clustermagnet[/eluser] Thanks! I've added the '=' still no go ![]() code: http://pastebin.ca/1980165 form not displaying - El Forum - 11-02-2010 [eluser]Christophe28[/eluser] Have you saved properly? Clean your cache of your browser perhaps? It works fine on my CI (just tested) so it is probably something simple you overlook. Christophe form not displaying - El Forum - 11-02-2010 [eluser]tonanbarbarian[/eluser] as ask previously do you have full error reporting on? i suspect that you have errors but they are not being displayed also as i suggested before you should post a copy of the html that is being produced if NONE of the form tags are being displayed AND you have the form helper loaded then perhaps your server does not support short PHP tags. form not displaying - El Forum - 11-03-2010 [eluser]clustermagnet[/eluser] Thanks Guys, the problem was simple, short tags not enabled ![]() have a great day! |