[eluser]Asinox[/eluser]
Hi, i want to know the best way to validate form...
for example im trying to validate the comments form, but i have error, maybe because im wrong, but
for example the url for read article is:
Code:
http://localhost/ci/main/read/15.html
and "read function" hav the comments form, but when i trying to send the comment with the empty form the url come back without ID
Code:
http://localhost/ci/main/read/
and show a lot of error because need the ID for show the article....
the question is...
in which function i need to validate?, in the function "read"? of in the function "insert_comment"?
Thanks