Skip to content
Advertisement

How to scale the number of form fields based on user input?

I’m new to PHP and making a website to add an arbitrary number of values in a given base. How would I generate several fields based on a user’s input in a previous field?

Advertisement

Answer

The simple code without any validation will be like this:

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement