I'm not sure, but I think what you're looking for is something like...
Code:
<?php
$link_table = array(
'tryingtohelp' => array(
'site1' => 'http://some.where/script/id1234',
'site2' => 'http://other.place/whatever?ref=tryingtohelp'
),
'moneyrev' => array(
'site1' => 'http://some.where/script/id5678',
'site2' => 'http://other.place/whatever?ref=moneyrev'
)
);
$id = $_REQUEST['id'];
echo <<<HTML
<html><body>
<!-- Some HTML goes here -->
Wonderful stuff <a href='{$link_table[$id]['site1']}'>here</a>.
And more wonderful stuff <a href='{$link_table[$id]['site2']}'>here</a>.
<!-- More HTML goes here -->
</body></html>
HTML;
# END
Now when you visit
this_script.php?id=tryingtohelp
you get one set of links, and when you visit
this_script.php?id=moneyrev
you get a different set of links.
Obviously, a lot more can be done to improve this script, but is that generally what you had in mind?
Bookmarks