View Full Version : submit adds text to end of predefined href
Aledopcworks
05-02-2008, 02:04 PM
I am wanting to find a script that takes the input from a text box, adds it to a predefined web address when submit is pressed and takes them to that page. I build websites for clients and I want a simply page that allows them to enter their web name into a box and preview their potential site. This would allow them to see a semi functional page on the web from wherever they are through a subdomain I have created. Thanks in Advance
no security/ verification, but here's something really simple:
<form>
<input type="text" name="T1" size="20">
<input type="button" value="Submit" name="B1" onclick="document.location.href = T1.value + '.htm'">
</form>
basically, the submit button puts whatever you type in the text box into a relative path. why don't you just make a subdomain for their site and give them the address? you could password protect it easy enough that way. there are some scripts here that do that.
instead of +'.htm' you could add whatever you need to add
Medyman
05-02-2008, 04:24 PM
why don't you just make a subdomain for their site and give them the address? you could password protect it easy enough that way. there are some scripts here that do that.
I would have to second that suggestion. That's definitely a much more secure method and requires about the same effort on the client's path.
Plus other people can't easily get into another client's area. This might not be a concern of yours. But it certainly is for some of our clients. Especially if you have an online portfolio where you list your clients...it wouldn't take much brain power to guess some usernames.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.