Page 1 of 1

parsing : $_SERVER['QUERY_STRING' ?

Posted: Mon Dec 15, 2003 3:52 am
by pelegk2
what is the best way to pare the values of : $_SERVER['QUERY_STRING']

Posted: Mon Dec 15, 2003 3:53 am
by malcolmboston
what exactly do you mean

i may be able to help

Posted: Mon Dec 15, 2003 3:57 am
by JayBird
have a look at

[php_man]parse_url[/php_man]
[php_man]parse_str[/php_man]

Mark[/php_man]

thanks alot

Posted: Mon Dec 15, 2003 4:08 am
by pelegk2
parse_str did it!

Posted: Mon Dec 15, 2003 4:09 am
by Nay
But that makes me wonder what you're trying to do. If it's a variable, I'm sure you know it can be accessed with $_GET but when I read your post It makes me think of -> thefile.php?do_this(). Although I'm not sure if it's possible.

Heck, educate me a little on this Mark ;).

-Nay

i had a url

Posted: Mon Dec 15, 2003 4:27 am
by pelegk2
with the vars
radio=1&money=41234
but i am sending it tothe server with post and the
ActiveXObject("Microsoft.XMLHTTP")
and when i do $_POST['money'] it gives strane feedback

Posted: Mon Dec 15, 2003 4:31 am
by Nay
I am now wondering what the query string has to do with $_POST vars. But if you're sending $_GET variables, why are you accessing it with $_POST['money']?

Urm........or I'm just confused 8O.

-Nay

Posted: Mon Dec 15, 2003 7:30 am
by pelegk2
i didnt said i am using get while i am using post:)