CodeIgniter Forums
form helper and form validation - 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 helper and form validation (/showthread.php?tid=33913)



form helper and form validation - El Forum - 09-13-2010

[eluser]Ajaxian64[/eluser]
Hi,

I just try to use form helper with set_value method of form validation class. And I can't.
I would like to retreive in my input form the values of the field:
Code:
echo form_input('xxx',<?php echo set_value('xxx'); ?>);
I have a parse error on this.

Is there a way use both ?

Thanks


form helper and form validation - El Forum - 09-13-2010

[eluser]Georgi Budinov[/eluser]
[quote author="Ajaxian64" date="1284399215"]Hi,

I just try to use form helper with set_value method of form validation class. And I can't.
I would like to retreive in my input form the values of the field:
Code:
echo form_input('xxx',<?php echo set_value('xxx'); ?>);
I have a parse error on this.

Is there a way use both ?

Thanks[/quote]

Perhaps
Code:
echo form_input('xxx', set_value('xxx'));



form helper and form validation - El Forum - 09-13-2010

[eluser]Ajaxian64[/eluser]
thanks