From what I can only assume, it appears you may be looking to utilize the PHP
$_GET and
switch functions.
With $_GET you can use php encoded urls like in fig. 1
To use the $_GET function you define $_GET by "case" (at the top of your execute.php page, before parsing any further data/output on the page).
Example execute.php:
Code:
$link_1 = 'www.site-a.com';
$link_2 = 'www.site-b.com';
$link_3 = 'www.site-c.com';
$link_4 = 'www.site-d.com';
$action = $_GET['action'];
switch ($action) {
case '1':
header("Location:$link_1");
case '2':
header("Location:$link_2");
case '3':
header("Location:$link_3");
case '4':
header("Location:$link_4");
}
Sample php encoded urls for the above might be something like:
Code:
<a href="dir/execute.php?action=1">Link 1</a>
<a href="dir/execute.php?action=2">Link 2</a>
<a href="dir/execute.php?action=3">Link 3</a>
<a href="dir/execute.php?action=4">Link 4</a>
The above is a "simplified" script sample (for ease of use).