Hi All,
Example: If my querystring was this:
page.php?item=1&item=2&item=3
How do I get the different values for $item into an array? Or into a string seperated by commas.
Many thanks in advance - Mark
page.php?item[]=1&item[]=2&item[]=3
thanks, so are you saying I should submit them with [] ?
is there a way of getting these variable into an array without having to alter the way they are sent?
thanks again - Mark
Just add [] in your fields name.
For example <input type="text" name="item[]"> <input type="text" name="item[]"> or <select name="item[]"> <option>1 <option>2 </select>
without having to alter the way they are sent? No, I think.
well, i shoudlnt complain, it isnt the way i wanted to do it but hey, it works!
many thanks again - mark