DEV Community

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
 
nachiket profile image
Nachiket Panchal

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
 
nachiket profile image
Nachiket Panchal

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