Results 1 to 1 of 1
Thread: Cpanel login script question
-
09-28-2003, 05:05 PM #1Junior Guru Wannabe
- Join Date
- May 2002
- Posts
- 31
Cpanel login script question
I am using the following PHP code for a web based login script...
PHP Code:<?
if ($_POST["submit"]) {
if ((!$_POST["user"]) || (!$_POST["pass"]) || (!$_POST["domain"])) {
echo("Please complete all fields.");
}
else {
?>
<HTML>
<HEAD>
<META HTTP-EQUIV="refresh" content="0;URL=http://<?=$_POST["user"]?>:<?=$_POST["pass"]?>@<?=$_POST["domain"]?>:2082/">
</HEAD>
[url]http://[/url]<?=$_POST["user"]?>:<?=$_POST["pass"]?>@<?=$_POST["domain"]?>:2082/
</HTML>
<?
}
}
?>
PHP Code:<html>
<head>
</head>
<body>
<form method="post" action="/login.php">
<input type="hidden" name="domain" value="server.mydomain.com">
<input type="text" name="user" style="width:109;height:18" size="20">
<input type="password" name="pass" style="width:109;height:18" size="20">
<input type="image" src="/myimage.gif" value="submit" name="submit" width="85" height="42" style="border:0">
</form>
</body>
</html>
<input type="image" src="/myimage.gif" value="submit" name="submit" width="85" height="42" style="border:0">
When I change the submit button from an image to a button, it works.
Any idea's or suggestions would help.Steve