Ask a Question related to PHP Development, Design and Development.
-
Sjaakie Helderhorst #1
Form values into cookie, array probs
Hi,
I'm (still) trying to store posted formvalues into a cookie.
Problem is the form-elements have names like 'product[0]',
'product[0][category]' and 'product[0][type]'.
When storing this into an cookie:
foreach ($_POST as $key => $value) {
setcookie($key, serialize($value), time() + 600);
}
$key has value 'product' and $value turns out to be an Array containing
'category' and 'type' with their values. Requesting cookie '$product[0]'
returns the product-name (as expected). However, requesting
'$product[0][category]' returns an empty string... Why?
Thanks in advance!
Sjaakie Helderhorst Guest
-
Populate form values based on previous same form fields
This message is cross posted in alt.comp.lang.php & comp.lang.javascript I have a form for a user to input an establishment's hours and what time... -
insert values in an array
Hy all, I like to insert a value in an array but only want to renumber the ones after the inserted value like this; situation 1)... -
Form submission fills form values with garbage
Hey all, I'm attempting to do some form processing on a server that has register_globals off, however, I've run into a confusing situation and... -
cookie and special caracters probs
Hello, I've two problems with php. My spec : Windows XP SP1, KFWS 2.2.0, IE 6 SP1, PHP 4.3.3. Web server is "KF web server", a server very... -
Array cookie
Hi, I have written a feed reader for my personal use. The php code given below does work. But it works only with a single feed. How can I save...



Reply With Quote

