SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Zealot
    Join Date
    Jan 2000
    Location
    CT
    Posts
    160
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    redirection question

    Hey everyone,

    Not sure if this is the right category but I am not sure where i should put it.

    I looking for the following:
    There is a page with a simple form... user puts in "username" and presses submit. They are then redirected to site.com/username

    Example:
    I got to the page and in the form I fill in "steve" as my username, once i press submit I am redirected to site.com/steve

    Is this possible?

    Thanks

  2. #2
    You talkin to me? Anarchos's Avatar
    Join Date
    Oct 2000
    Location
    Austin, TX
    Posts
    1,438
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes it naturally is possible. You'll want to use the onsubmit handler of the <form> tag, and the window.location.href object to specify the new url.
    ck :: bringing chris to the masses.


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
  •