how to set email validation. |
[eluser]kit005[/eluser]
Hi! I want to make some email validation , but i dunno how to make it in CI. Know it in javascript but i preffer to do it in CI. Any means is highly appreciated.. Cheers ;-)
[eluser]vrencianz[/eluser]
See <b>valid_email</b> here http://ellislab.com/codeigniter/user-gui...ereference I hope this helps.
[eluser]kit005[/eluser]
Please I need some help,. i just cant find my mistake in my codes. Got some severity warning when i submit this.. Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
[eluser]kit005[/eluser]
Heres my controller: Code: <?php
[eluser]InsiteFX[/eluser]
Quote:Please I need some help,. i just cant find my mistake in my codes. Got some severity warning when i submit this.. So what is the Severity Warning you are getting???
[eluser]ojcarga[/eluser]
I guess your problem is that you are not doing any kind of validation buddy. I do not see it anywhere, you are just validating if array has something in the controller Code: if (count($queryr['details'])<0) Read a little of documentation and then come back with your inquiries ;-)
[eluser]kit005[/eluser]
Severity: Warning Message: Invalid argument supplied for foreach() Filename: demo/display.php Line Number: 47
[eluser]kit005[/eluser]
i dunno why there such an error or something coz without CI it goes well..>
[eluser]InsiteFX[/eluser]
Are you returning an array or object from your demo model?
[eluser]kit005[/eluser]
i change my javascript validation to the CI form validation and i get this error A PHP Error was encountered Severity: Notice Message: Undefined offset: 1 Filename: libraries/Form_validation.php Line Number: 953 Error Number: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE ` = 'csampiano@yahoo.com' LIMIT 1' at line 2 SELECT * WHERE ` = 'csampiano@yahoo.com' LIMIT 1 Filename: C:\Program Files\Apache Group\Apache2\htdocs\demonitization\system\database\DB_driver.php Line Number: 330 i dunno why i have this limit1.. do i ommited something in my model or i need something to change in controller..:-S |
Welcome Guest, Not a member yet? Register Sign In |