extract a variable in the querystring and match

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
Ron_e
Forum Newbie
Posts: 13
Joined: Tue Sep 15, 2009 11:59 pm

extract a variable in the querystring and match

Post by Ron_e »

I'm developing a website in FLASH. I've got a list of emails of several Distributors.

I need help in writing a PHP script which would extract a variable (ID) in the querystring (URL) and match it to an ID on the PHP page, then pass the relevant email address into Flash.
thecwb
Forum Newbie
Posts: 2
Joined: Wed Sep 30, 2009 8:07 am

Re: extract a variable in the querystring and match

Post by thecwb »

Would be great to see and example of what you want...

I think you need to look at PHP's function preg_match. If its ?id=x, then in php just use $_GET['x'], otherwise preg_match it out...
Ron_e
Forum Newbie
Posts: 13
Joined: Tue Sep 15, 2009 11:59 pm

Re: extract a variable in the querystring and match

Post by Ron_e »

Please could anyone help me with a script.
Post Reply