So I have a javascript on my page, which makes me able to add another input text field when I click on a button. And it's named "test" when I click the button it creates another input named test1, on another click it creates test2 and so on... But I have a problem on my form processing page, I need to get know which is the last "test" and also I need to set variables for each of them. I imagine some small code which will make something like this for me:
$test = $_POST('test');
$test2 = $_POST('test2') ;
$test3 = $_POST('test3') ;
$test4 = $_POST('test4') ;
And it will go on until last test. Thanks for helping me.
$test = $_POST('test');
$test2 = $_POST('test2') ;
$test3 = $_POST('test3') ;
$test4 = $_POST('test4') ;
And it will go on until last test. Thanks for helping me.
Comment