Log in

View Full Version : Small script require... Please help


spyyder
Dec 21, 2005, 04:37 PM
I have a new accounts section, where each person has his own driectory on my website (e.g. www.blank.com/thepersonname). How do I make a box (lets call it "box1") where the person enters his user name in (e.g. "yoyoyo123" - again in "box1") and a button (lets call it "button1") that makes the persons browser go to the address www.blank.com/yoyoyo123 (basically the pre-given website, followed by the text in "box1").

I am using frontpage and dreamweaver by the way.:o

LTheobald
Dec 22, 2005, 03:18 AM
Here's a very simple way of doing it:


<form name="redirectForm">
<input type="text" name="test"/><br/> <!-- This is your box for the name -->
<input type="button" name="Go" value="Go" onclick="window.location='https://www.askmehelpdesk.com/'+ document.redirectForm.test.value"/> <!-- Clicking this button will send you to "https://www.askmehelpdesk.com/" followed by whatever was in the box -->
</form>

spyyder
Dec 31, 2005, 09:31 AM
Thx man.. ill try it out