-
I'm sorry, here I forgot the last ")
Code:
$id=$_POST['id'];
if ($id=="1232343") {
print("
<html>
<head>
<script type=\"text/javascript\">
setTimeOut(\"window.location='nextpage.html'\",1);
</script>
</head>
<body>
</body>
</html>
");
}
else {
print("
<html>
<head>
<script type=\"text/javascript\">
setTimeOut(\"window.location='javascript.go:history(-1)'\",5000);
</script>
</head>
<body>
ID wrong, please try again.
</body>
</html>
");
}
EDIT: please completely recopy the code, I made some coding errors and a full copy is needed. I can't seem to get the redirect working but maybe its just me. Anyways the PHP part works now.
-
I edited the script a little so it would work:
PHP Code:
<?php
$id=$_POST['id'];
if ($id=="1232343") {
print("
<html>
<head>
</head>
<body>
<a href='register.cgi'>Go Foward</a>
</body>
</html>
");
}
else {
print("
<html>
<head>
</head>
<body>
ID wrong, please try again.<br>
<a href='javascript:history.go(-1)'>Go Back</a>
</body>
</html>
");
}
?>
-
I don't use that function much, so excuse my JavaScript mistakes. Hope it works.
Tim
-
Scratch what I jist said nvrmnd.