Greetings,
I've seen and read tons of articles on redirect, but none are very concise or work for me. I have php running again after a messy upgrade. on Win98SE, Jana server, php 4.2.3
access.htm:
<html>
<head>
<title>Dynamic Redirect</title>
</head>
<body>
<form name=login action="redirect.php" target="_.blank">
<table width="440" border="3" cellpadding="3">
<tr>
<td>Enter the folder name you wish to access:</td>
<td><input type="text" name=newlocation size="20"></td>
</tr>
</table>
</form>
</body>
</html>
redirect.php:
<html>
<?php
header("Location: $newlocation");
?>
</html>
This should be a simple task, but has me going bonkers. I keep getting header errors. The FAQs, tutorials, etc all post little sniipets of code, but none that I have found give a complete answer or a total explantion of PHP coding. W3C has an excellent HTML tutorial and refefence section. I just haven't found it for PHP yet.
Any Assistance would greatly apprciated.. -David