DEV Community

loading...

Discussion on: How to Add Unlimited Fields in Form Using JavaScript and Store Into Database With PHP

Collapse
adnanbabakan profile image
Adnan Babakan (he/him)

Thanks for sharing this!
But I think your code is subject to some good SQL Injection and XSS attacks! xD

Collapse
niick007 profile image
Nachiket Panchal Author

Of course, I've posted it for novice programmers who are looking for a straight forward logic. After understanding the logic, they can implement some advance scripting :)

Collapse
adnanbabakan profile image
Adnan Babakan (he/him)

Uh nice! Excuse my saying but I suggest you add a line that warns them somehow.
Love your posts.

Thread Thread
niick007 profile image
Nachiket Panchal Author

Ya sure, thanks for your suggestion.
Now I am planning to write a separate post on security.