Search found 2 matches

by kelsjc
Sun Oct 03, 2010 5:48 pm
Forum: PHP - Code
Topic: How to print an array of $POST
Replies: 2
Views: 64

Re: How to print an array of $POST

With that form, you have a multi dimensional array. All your values are in the 2nd level deep, so to get those form values, you would do: foreach ($_POST['type'][0] as $item){ echo $item; } I'm not exactly why you are using a multi dimensional array in this case, but thats out of the scope of your ...
by kelsjc
Sun Oct 03, 2010 3:23 pm
Forum: PHP - Code
Topic: How to print an array of $POST
Replies: 2
Views: 64

How to print an array of $POST

Hi all This is probably the easiest question ever :), but I am not familiar with arrays , so hope somebody can help me User post this checkbox array form: <input type="checkbox" name="type[0][]" value="1" > <input type="checkbox" name="type[0][]" val...