here is a simple program written in PHP (i am assuming your are hosted on a linux server)
in your form you should set the action="simplelittlescript.php" and method = post
name the "box" field "newpage"
Here is the code for the simplelittlescript.php
Code:
<? $newpage=$_POST['newpage']; /// this variable is from your textbox field named 'newpage'
if (file_exists($newpage)) {
header("Location:$newpage") ; }
?>
Enjoy
__________________
Please login or register to view this content. Registration is FREE - step-by-step learn how to design, create and install your own website in hours...not days. Please login or register to view this content. Registration is FREEwas never so easy.
Last edited by memberpro; 02-19-2007 at 05:06 PM..
|