I am a beginner in PHP-Codeignitor.So i dont know this question too waste for you guys.
But is there any easy way to validate form data ?
Ex.I have a table and it contain a text field “username”,there is a insert button too,whern user clicked on insert it will add another text field.
So how can i get the value(s) in php ? because user can add any number of fields there.
$username = $_POST(“username”); //what it will retrieve in this case ? array ?
Also how can handle situation like this.
Thank you.
If you set an array in the form, you will get an array in $_POST.
form fields:
php: