Hi

Is it possible to pass an array into the $_POST supergloble and retrieve it again in another page? It works without a problem for single variables.

I could serialise the data and unserialise it but this way just seems simpler if possible

Any help would be greatly appreciated

Thanks
Tim

    If you want to pass an array, the serialize() is the way to go.

    If you want to pass the form data in an array, then use something like:
    name="variable[]"
    or
    name="variable[stuff]"
    for the form element.

    You would then be able to access the $_POST['variable'] array, if the user has entered values.

      thanks for that i'll have a go

        Write a Reply...