parsing : $_SERVER['QUERY_STRING' ?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
pelegk2
Forum Regular
Posts: 633
Joined: Thu Nov 27, 2003 5:02 am
Location: Israel - the best place to live in after heaven
Contact:

parsing : $_SERVER['QUERY_STRING' ?

Post by pelegk2 »

what is the best way to pare the values of : $_SERVER['QUERY_STRING']
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

what exactly do you mean

i may be able to help
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

have a look at

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

Mark[/php_man]
User avatar
pelegk2
Forum Regular
Posts: 633
Joined: Thu Nov 27, 2003 5:02 am
Location: Israel - the best place to live in after heaven
Contact:

thanks alot

Post by pelegk2 »

parse_str did it!
Nay
Forum Regular
Posts: 951
Joined: Fri Jun 20, 2003 11:03 am
Location: Brisbane, Australia

Post 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
User avatar
pelegk2
Forum Regular
Posts: 633
Joined: Thu Nov 27, 2003 5:02 am
Location: Israel - the best place to live in after heaven
Contact:

i had a url

Post 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
Nay
Forum Regular
Posts: 951
Joined: Fri Jun 20, 2003 11:03 am
Location: Brisbane, Australia

Post 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
User avatar
pelegk2
Forum Regular
Posts: 633
Joined: Thu Nov 27, 2003 5:02 am
Location: Israel - the best place to live in after heaven
Contact:

Post by pelegk2 »

i didnt said i am using get while i am using post:)
Post Reply