开发者

passing xml values as url values(GET)

I can post values in url without form...(filename.php&key1=value1&key2=value2) and I can run the file

what if the key and value i开发者_Python百科s posted through XML

How to pass the values in url and run the file??

ex: < key1 >value1< /key1 > < key2 >value2< /key2 >


If the URL has a valid format, the nature of the data does not matter. Simply use rawurlencode() as usual.

However, the URL is not a suitable place to transmit large amounts of data since it has a size limit and such limit is not even universal.


An URL in a XML-file is exactly the same as any other URL defined as URI. So, to pass values from XML to some script, you just append those values to the URL as accustomed.

Values passed via an URL, are accessible as $_GET-variables in PHP. You also don't need something like $_POST=$_REQUEST;, because $_REQUEST is *An associative array that by default contains the contents of $_GET, $_POST and $_COOKIE.*

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜