0
How to take input from user several times and save it using forms in php?
for eg i have to ask the user to enter a number, either '1' for printing factorial or '2' for printing multiplication table then for e.g. they choose 1 then further there's an option where they can enter a number from 1-10 and then the factorial of the number they enter will be printed out on the screen. Same goes for if the user enters 2 for printing out table of their desired number. Now I do know how to do the calculations I just don't know how to get the input from the user and use it and print it out
1 Answer
0
To access the input value with PHP, you use the superglobal $_POST["inputName"]. Your input needs to have an already set name attribute.