I have a webpage with the following input:
<input type='text' name='packagedims[]' value='1' id='packagedims' title='Package1' />
I'm using it in jQuery as so:
var packagedims = $('input#packagedims').serialize();
and then I'm using jQuery.ajax to post it to my php file:
'&packagedims=' + packagedims
(I know I could use Serialize() on the whole form but I'm modifying existing code so haven't got round to doing that yet. In the above line I'm sending individual variables to php.)
When I test the output using alert() I get the following:
&packagedims=packagedims%5B%5D=1&packagedims%5B%5D=2
I just wanted to check that this sort of output is correct and that using unSerialize() in my php file will be able to split this into a proper array.
Thank you,