Page 1 of 1

Newbie - Pick the email address and return

Posted: Mon Oct 05, 2009 12:25 am
by Ron_e
I'm having a list of email addresses and I only want the PHP to select one of them at a time, depending on the information passed through the strings and into the form. When PHP receives the query string I would like PHP to extract it and match to an email address ("www.myweb.com/main.html?blaBLA" --> extract as "?blaBLA").

I'm using Flash (AS2) to do my form and I send data using LoadVars to PHP. Here's the pseudocode for what I'm trying to do. (I'm not sure if the syntext is correct). Please help me write this complete code.

where $list = "abc" then $email = "abcd@domain1.com"
where $list = "xyz" then $email = "pqurs@domain2.net"
where $list = "ghi" then $email = "uvwx@domain3.org"
(repeated 30 times for 30 email addresses!)

I hope that make sense! I'd preffer to have the code because I'm NOT a PHP person at all!

Re: Newbie - Pick the email address and return

Posted: Mon Oct 05, 2009 3:20 am
by Ron_e
Are all asleep???? :P :P

Check whether anyone could fix this piece of code.

$sendURL = $_SERVER['QUERY_STRING']
while($line = mysql_fetch_assoc($results)) {
if (in_array("['QUERY_STRING']",$line["ID"]))
echo "<item>" . $line["Email"] . "</item>\n";
}

Re: Newbie - Pick the email address and return

Posted: Mon Oct 05, 2009 4:09 am
by thomas777neo
:banghead: