Page 1 of 1

extract a variable in the querystring and match

Posted: Wed Sep 30, 2009 5:19 am
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.

Re: extract a variable in the querystring and match

Posted: Wed Sep 30, 2009 8:16 am
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...

Re: extract a variable in the querystring and match

Posted: Wed Sep 30, 2009 11:52 am
by Ron_e
Please could anyone help me with a script.