Validation issue - 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: Validation issue (/showthread.php?tid=8711) |
Validation issue - El Forum - 05-28-2008 [eluser]einstein[/eluser] Hi, I am new to this forum so I would like to say: "Codeigniter is the best!". Now to get to my problem. I have a form, validation rules like required, xss_clean, etc are added. Everithing works according to the book. No problem here My issue is that i want my input fields to have a default value like: [email protected] (for the email field). in the input field i have this <input name="sEmail" type="text" id="sEmail" title="Email address" value="<?php echo $this->validation->sEmail;?>"/> This will return the entered value for this field if the form has errors. But i need to add a value to that field befor that field is submited. I hope i was clear about my problem, I've been looking into the manual but nothing about default values and validations as far as i remember. Any help ideeas are welcomed. Thank you Validation issue - El Forum - 05-28-2008 [eluser]gtech[/eluser] [url="http://ellislab.com/forums/viewthread/71934/"]http://ellislab.com/forums/viewthread/71934/[/url] I think the solution is in the link. Validation issue - El Forum - 05-30-2008 [eluser]einstein[/eluser] Thank you for you fast reply that helped with my issue. And yes i do believe that this should be one of CI core functionality. Thank you, very much Validation issue - El Forum - 05-30-2008 [eluser]gtech[/eluser] Glad you got it working. |