Newbie - Pick the email address and return

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

Newbie - Pick the email address and return

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

Re: Newbie - Pick the email address and return

Post 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";
}
User avatar
thomas777neo
Forum Contributor
Posts: 214
Joined: Mon Mar 10, 2003 6:12 am
Location: Johannesburg,South Africa

Re: Newbie - Pick the email address and return

Post by thomas777neo »

:banghead:
Post Reply