Welcome Guest, Not a member yet? Register   Sign In
form not displaying
#1

[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>
&lt;?=form_input('userEmail',set_value('userEmail'))?&gt;
</li>

<li>
<label>Password</label>
&lt;?=form_password('userPassword')?&gt;
</li>

<li>
&lt;?form_submit('', 'Login')?&gt;
</li>
</ul>


</fieldset>

&lt;?=form_close()?&gt;
#2

[eluser]clustermagnet[/eluser]
Here is the screen cap
#3

[eluser]Christophe28[/eluser]
You forgot '=' after your form_submit opening tag.

This should be better: &lt;?=form_submit(’‘, ‘Login’)?&gt;

If it doesn't throw you an error, it is usually because you forgot 'echo' or 'print' or '=' like this case.

Christophe
#4

[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
#5

[eluser]clustermagnet[/eluser]
form helper has been enabled via autoloaders.php

checking css Smile

thanks!
#6

[eluser]Christophe28[/eluser]
[quote author="Christophe28" date="1288758394"]You forgot '=' after your form_submit opening tag.

This should be better: &lt;?=form_submit(’‘, ‘Login’)?&gt;

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
#7

[eluser]clustermagnet[/eluser]
Thanks! I've added the '=' still no go Sad

code:
http://pastebin.ca/1980165
#8

[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
#9

[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.
#10

[eluser]clustermagnet[/eluser]
Thanks Guys,
the problem was simple, short tags not enabled Smile

have a great day!




Theme © iAndrew 2016 - Forum software by © MyBB