<input name="/xy[1]/ab[2]" ... don't need array !!
| From: | Bernhard Zwischenbrugger | Date: | Sun, 25 Apr 2004 09:57:25 +0000 |
| Subject: | <input name="/xy[1]/ab[2]" ... don't need array !! | ||
| Groups: | php.xml.dev | ||
| Request: | Send a blank email to php-xml-dev+get-362@lists.php.net to get a copy of this message | ||
Hi all
I want to name my POST variables like:
<input name="/ab[1]/cd[2]/ds" value="test">
The NAME is an XPATH (w3c standard).
Using PHP5 xml query I can make some nice things -
but PHP interprets the NAME as an ARRAY.
while(list($pkey, $pvalue)=each($_POST)) {
$theElement=$xpath->query($pkey)->item(0); //ERRRRORRR
...
} //not working - $pkey is an ARRAY
How can I set the TYPE of $pkey to STRING ???
This is realy importent and I need a solution at monday.
thanks a lot
Bernhard