Hi,
I am need to pass serialized assotiative array via form hidden field
(not GET or POST). In order to do it, I did the following:
urlencode(serialize($my_array)). However, after retrieving data from
hidden field and unserialize I've got junk.
Someone can explain me what I did wrong?
Also,
Andrei Verovski (aka MacGuru) napsal(a):
Hi,
I am need to pass serialized assotiative array via form hidden field
(not GET or POST). In order to do it, I did the following:
urlencode(serialize($my_array)). However, after retrieving data from
hidden field and unserialize I've got junk.
Someone
Just tried it out and you should use htmlspecialchars() instead of
urlencode(). When you put it in a hidden field the browser is
responsable for urlencoding the data.
Jacob
On Mon, 2003-07-21 at 09:24, Andrei Verovski wrote:
Hi,
I am need to pass serialized assotiative array via form hidden
Andrei Verovski (aka MacGuru) wrote:
Hi,
I am need to pass serialized assotiative array via form hidden field
(not GET or POST). In order to do it, I did the following:
Uis there a third form method that I'm not aware of?
urlencode(serialize($my_array)). However, after retrieving data
--- Andrei Verovski [EMAIL PROTECTED] wrote:
I am need to pass serialized assotiative array via form hidden
field (not GET or POST).
This is impossible. A hidden form field is simply a form field that is not
displayed to the user. Form actions must be GET or POST.
In order to do it, I did the
Just a small point, you can have both GET and POST.
-- search.html -
form method=POST
action='page.php?action=searchsid=09h34fnn3f0qn34f8n38fn34htq83th83qh'
input name=search type=text
input type=submit value='Find It!'
/form
- page.php
$sid = $_GET['sid'];
--- Andrei Verovski [EMAIL PROTECTED] wrote:
I am need to pass serialized assotiative array via form hidden
field (not GET or POST).
This is impossible. A hidden form field is simply a form field that is not
displayed to the user. Form actions must be GET or POST.
In order to do it, I
--- John Manko [EMAIL PROTECTED] wrote:
Just a small point, you can have both GET and POST.
-- search.html -
form method=POST
action='page.php?...
Notice your form method is POST, not both GET and POST. The HTTP request sent
after a user submits this form will be a POST request,
8 matches
Mail list logo