I searched for a while and could not find anything of relevance to what I am looking for, so forgive me if I accidentally overlooked the obvious.
I want to be able to create a dynamic form that gives a slect field that creates multiple input fields.
I have this (just psudo typed):
echo "
How many names do you want to enter? ";$name = $_post[‘name’];
for($i = 1; $i <= $name; $i++) {
$bob = 'name' . $i;
echo "
name $i
";
}
My first problem I run into is
Notice: Undefined index: name
The second problem is, how can I refresh the number of options without having to go to a new webpage? Is that possible? I have a work around on another page, but it uses two separate pages, I want just one.
Is this called something that I can do a search for?
Thanks in advance!