• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Re-populating form with 2 dimensional indexed array

#4
[eluser]meigwilym[/eluser]
I see what you mean.

I tried a quick test with this
Code:
<form method="post" action="">

<input type="text" name="expenses[]name[]" value="" />
<input type="text" name="expenses[]amount[]" value="" />

<input type="text" name="expenses[]name[]" value="" />
<input type="text" name="expenses[]amount[]" value="" />

<input type="text" name="expenses[]name[]" value="" />
<input type="text" name="expenses[]amount[]" value="" />

<input type="text" name="expenses[]name[]" value="" />
<input type="text" name="expenses[]amount[]" value="" />

<input type="text" name="expenses[]name[]" value="" />
<input type="text" name="expenses[]amount[]" value="" />

<input type="text" name="expenses[]name[]" value="" />
<input type="text" name="expenses[]amount[]" value="" />

<input type="submit">
</form>

but $_POST just gives and expenses array (I also tried without the second pair of square brackets).

Sorry, but I can't help you here, although I'm interested to see what others have to say.

Mei


Messages In This Thread
Re-populating form with 2 dimensional indexed array - by El Forum - 02-22-2012, 04:18 AM
Re-populating form with 2 dimensional indexed array - by El Forum - 02-22-2012, 05:05 AM
Re-populating form with 2 dimensional indexed array - by El Forum - 02-22-2012, 05:23 AM
Re-populating form with 2 dimensional indexed array - by El Forum - 02-22-2012, 08:17 AM
Re-populating form with 2 dimensional indexed array - by El Forum - 02-22-2012, 08:28 AM
Re-populating form with 2 dimensional indexed array - by El Forum - 02-22-2012, 08:45 AM
Re-populating form with 2 dimensional indexed array - by El Forum - 02-22-2012, 01:18 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.