I would create a userform with a hidden value that would hold the "www" part and then a field element for the "box".
When you hit submit you should have a simple program that would take the hidden field and add the value of the "box" field and then use simple redirect code to forward the user to the correct page.
Good Luck.
__________________ Membership Mastery Videos - step-by-step learn how to design, create and install your own website in hours...not days. Web Site Design was never so easy.
I would create a userform with a hidden value that would hold the "www" part and then a field element for the "box".
When you hit submit you should have a simple program that would take the hidden field and add the value of the "box" field and then use simple redirect code to forward the user to the correct page.
Good Luck.
That is what I was thinking but I would need to know what the "simple program" consists of (my skills with forms are not very good). Any specific instructions here would be most appreciated.
The purpose of the box for me is so that users of my site do not need to remember the long url to get where they want to go, they only need to know a short bit they can enter in a box. More specifically, the url is to a survey php and the bit in the box they would type takes them to whatever survey they constructed.
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
__________________ Membership Mastery Videos - step-by-step learn how to design, create and install your own website in hours...not days. Web Site Design was never so easy.
Last edited by memberpro : 02-19-2007 at 05:06 PM.
The purpose of the box for me is so that users of my site do not need to remember the long url to get where they want to go, they only need to know a short bit they can enter in a box. More specifically, the url is to a survey php and the bit in the box they would type takes them to whatever survey they constructed.
This is exactly what hyperlinks are for. Just use regular html.
Kind of like killing a fly with a bazooka... I agree...
__________________ Membership Mastery Videos - step-by-step learn how to design, create and install your own website in hours...not days. Web Site Design was never so easy.