Welcome Guest, Not a member yet? Register   Sign In
When page loads, form validation gives errors (before press the submit button).
#1

[eluser]egguzel[/eluser]
I have a registration form in register.php page that people write their name, username, password etc. And I use codeigniter form validation library in that page (register.php).

I have a form in an another page (index.php) and this form's action is register.php. So I go to register.php via sumbit button in index.php

But there is a problem. When the register.php page loads, the form validation gives errors that "You should enter your username, name etc". Since I did not press submit button in register.php page, showing validation error is meaningless.


When I enter the url (domain/register.php) directly to the browser, the register.php page loads and there is no validation error. That is correct because I have not enter submit button in register.php page.

How can I get rid off the form validation error when register.php page loads when I go to register.php via form action in index.php.

Thank you very much.


My code in index.php

echo form_open($base . 'register/');
#2

[eluser]InsiteFX[/eluser]
No one here can help you with out seeing your code to see what is wrong.

Post your code that is giving you problems and make sure you use the code tags.




Theme © iAndrew 2016 - Forum software by © MyBB