I’m looking to insert the following code into the attached code. I do not have the proper php background to understand why it does not work for me.
PHP Code:
$link = ”;
$host = strtoupper( stripslashes( $_REQUEST[‘host’] ) );
switch( $host )
{
case “ABC”:
$link = ‘<a href=”http://abc.com”>abc link</a>’;
break;
case “DEF”:
$link = ‘<a href=”http://def.com”>def link</a>’;
break;
case “GHI”:
$link = ‘<a href=”http://ghi.com”>ghi link</a>’;
break;
default
$host = ‘ERROR!’;
$link = ‘<b>invalid link specified</b>’;
}
print ‘You have selected ‘. $host .’ so here’s your link: ‘. $link;
[upl-file uuid=3d9adce0-e605-4e6d-9c4b-2acc65b00dd2 size=5kB]code.txt