html - codnigter PHP echo form_submit error -


1 - dont pass variable e don´t login.... why ??

<?php echo form_submit('login', 'login', 'class="btn btn-primary"') ?> 

2 - work

<button type="submit" class="btn btn-primary">login</button> 

your " , ' in wrong place change

<?php echo form_submit('login', 'login', 'class="btn btn-primary"') ?> 

to

<?php echo form_submit('login', 'login',"class='btn btn-danger'");?>  

Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -