Hi I have a form that has 10 lots of 2 fields ie url text url text I want to add these to an associative array straight from the form. Can anytone tell me how this is done. Thanks
Are you talking about when the form gets submitted the fields themselves are taken as arrays? If so perhaps you are looking for this? <input type="text" name="url[]"> <input type="text" name="text[]"> Code (markup):
yep, use the name[]. You then will be able to access the variables as an array. This will work on all form inputs/buttons/etc.. Peace,