Results 1 to 3 of 3

Thread: submit adds text to end of predefined href

  1. #1
    Join Date
    May 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs down submit adds text to end of predefined href

    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

  2. #2
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    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
    Last edited by traq; 05-02-2008 at 03:49 PM.

  3. #3
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Quote Originally Posted by traq View Post
    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •