[PHP] Multiple Arrays in OOP

2001-09-22 Thread Jamie Smith
ting is what I was expecting for the code below) Thanks again Jamie Smith CODE follows init(); header("Location: $HTTP_REFERER"); break; case "add" : $MYSESSION["cart"]->add($item_code, $form_qty, $option); default: ?> CODE : Option:

[PHP] Arrays and forms

2001-02-18 Thread Jamie Smith
Thanks to all the replies to my previous email on arrays (passing arrays through URLs) but I cannot seem to get serialize() to work correctly so I'm now trying to echo out the array as a series of hidden elements in a form that when submitted will re-build the array. I've been driving myself ma

[PHP] passing arrays through URLS

2001-02-18 Thread Jamie Smith
I need to pass a array through a url. Currently I'm assigning the array to the url like so http://localhost/dir/page.php?checkbox_array=$checkbox_array but when I want to sort through the array on the recieved page it is not possible because the array seems to have been replaced with the string

[PHP] passing arrays through URLS

2001-02-18 Thread Jamie Smith
I need to pass a array through a url. Currently I'm assigning the array to the url like so http://localhost/dir/page.php?checkbox_array=$checkbox_array but when I want to sort through the array on the recieved page it is not possible because the array seems to have been replaced with the string