• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help with form_input()

#1
[eluser]sanguina[/eluser]
The documentation says that to populate form field with form_input() - use:

'value' => 'enter your login id', in the array.

Also to repopulate fields in case of error in entry - we are supposed to do:

'value' => set_value('login'),

I basically want to do both -

i;e - before the user enters anything - the form field should display - "enter your user id" but supposedly he enters wrong details - the form should then be repopulated with the entered data.

How to do this ? thanks

#2
[eluser]CroNiX[/eluser]
read about the 2nd parameter to set_value() Smile

#3
[eluser]xtremer360[/eluser]
With html5 there's an attribute called placeholder that you might want to look into.

#4
[eluser]sanguina[/eluser]
thanks set_value()2nd parameter worked..


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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