Have you tried searching the internet for PHP tutorials and examples?
Code:
if( isset($_POST ['serv']) )
{
$select=$_POST ['serv'];
}
if(isset($select))
{
if($select == self)
{
header('Location: /etc/cfg2html/node1.cluster.com.html');
}else{
header('Location:'.$select. ' ');
}
}
?>
The possible values that can be assigned to serv is defined by value= which you have defined as server1, server2 or "" therefore the if statement "$select == self" will never be true. I don't pretend to be a programmer and there could be some errors. I would place this at the top. I assume your web server is configured to serve pages from /etc/cfg2html/
Code:
<?php
if( isset($_POST ['Submit']) && $_POST ['Submit']=="Go" )
{
$select=$_POST ['serv'];
if($select == "server1")
header('Location: /etc/cfg2html/node1.cluster.com.html');
if($select == "server2")
header('Location: url_for_server2 ');
}
?>
I've also reported your thread to be moved to programming.