function formyoptions()
{
foreach($_POST["myoptions"] as $index => $val)
{
print("myoption[".$index."] = ".$val.",");
formultifield();
foraddress();
}
}
function formultifield()
{
foreach($_POST["multifield"] as $index => $val)
{
print("multifield[".$index."] = ".$val.",");
}
}
function foraddress()
{
foreach($_POST["address"] as $index => $val)
{
print("address[".$index."] = ".$val.";<br>");
}
}
I am having a problem with the above code. I have tried rearranging them to no avail, so i must be missing somehting. Whats going on is that the values are being read from a javascript array which passes without any problems. Problem is lining up everything. I need it to line up as:
myoptions,multifield,address;
repeat above as needed.
What am I doing wrong? Seems to spit everything out multiple times. Any help is appreciated 🙂