el siguiente script se supone que usted ingresa y se valida contra la base de datos y despues con el echo se imprimir otra web que es un form que se envia a otro sitio y al ingresar valida el primer usuario pero el resto no:
<?php
include_once("config.inc.php");
global $db, $db_host, $db_user, $db_password;
if ($submit = "Login")
//Connect to the database and report any errors on connect.
$cid = mysql_connect($db_host,$db_user,$db_password);
# Setup SQL statement, update account to show that user has confirmed.
$SQL = "select * from account where username='$hush_username'";
if ($row["username"]==$hush_username )
{
echo " <html>\n";
echo " <head>\n";
echo " <meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">\n";
echo " <title>Untitled Document</title>\n";
echo " <script language=\"JavaScript\" type=\"text/JavaScript\">\n";
echo " <!--\n";
echo " function TJK_noWayBack(){// http://www.TJKDesign.com - Thierry Koblentz\n";
echo " history.go(1);\n";
echo " }\n";
echo " TJK_noWayBack();\n";
echo " //-->\n";
echo " </script>\n";
echo " </head>\n";
echo " <body onLoad=\"this.frm.submit();TJK_noWayBack()\" >\n";
echo " <FORM ACTION=\"https\"\n";
echo " METHOD=\"POST\" name=\"frm\" id=\"frm\">\n";
echo " <input name=\"username\" type=\"TEXT\" size=\"10\" value=$username >\n";
echo " <input name=\"Button\" type=\"button\"\n";
echo " value=\"Login\" onclick=\"verify();\">\n";
echo " <input type=\"HIDDEN\" name=\"domain\"\n";
echo " value=\"callmastersecured.com\">\n";
echo " <input type=\"HIDDEN\" name=\"customerid\" value=\"a\">\n";
echo " <input type=\"HIDDEN\" name=\"exitpage\" value=\"https://www.callmastersecured.com/mail/login.html\">\n";
echo " </FORM>\n";
echo " </body>\n";
echo " </html>";
}
else
{
include "test.html";
}
?>