getting data for duplicate keys in $_POST



Hi there,

I'm trying to process a form that I got from a JSP generated page.
Basically, want to take out and process some of the data, and redirect the
rest to a JSP page that will handle the rest. All works well, i traverse
$_POST, writeout hidden input fields and autosubmit the form with a little
javascript, a perfectly acceptable solution for our users.

However, the data the JSP page sends contains one certain input with the
same name a couple of times. Due to complicated reasons, I cannot change
that name into a PHP-style array. PHP, however, throws all the values of
those fields away except for the last one.

Is there any way to retreive data from inputs with duplicate names? I know
that with GET, I could just parse the query string myself, but sadly i need
to use $_POST (the thing I'm processing in PHP is a file upload). I have no
way of changing the input names themselves (and see no alternative other
than pulling a lot of ugly javascript hacks in the JSP page to fake it all).

Thanks in advance,

Egbert


.



Relevant Pages

  • Re: HTML "scrape" causes loss of query string in URL
    ... >> in PHP with several PHP scripts interacting with one Java servlet, ... >> which interacted with several Java classes. ... > process to go from PHP to JSP. ...
    (comp.lang.java.help)
  • Re: Ruby performance woes
    ... Now here's my take on all this: PHP and JSP and what I inquired ... S-expressions used as a directly alternate expression of SGML or XML. ... By the way, I've never had access to a Web server that can run ASP, ...
    (comp.lang.lisp)
  • Re: PHP5 a threat, or a complement to server-side java?
    ... and moving their scripts to PHP. ... What I currently DON'T see is Sun making a big push for JSP, ... In short: MINDSHARE, MINDSHARE, MINDSHARE. ...
    (comp.lang.java.programmer)
  • Re: my little comments on jsp and php
    ... Why do you talk about struts and hibernate when talking about JSP, ... I learned jsp for about 5 years, and learned php for about 4 ... When I do JAVA webapp project, I just use one IDE and can finish all ...
    (comp.lang.java.programmer)
  • Re: =?iso-8859-1?Q?Kompatibilit=E4t?= von Konzepten von PHP zu Java
    ... Reine Servlets sind nicht so prickelnd. ... JSP sagen mir wenig zu, genau wie bei PHP ein Gemisch ... aus PHP und HTML. ...
    (de.comp.lang.java)