SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    Git-R-Done
    Join Date
    Nov 2001
    Posts
    1,194
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need To Modify URL From A Form

    I need to change the way a URL is loaded when a form is submitted so that the value shows up like /directory/value/ instead of /directory/?variable=value when using the post method. Can somebody tell me how to accomplish this?
    John Saunders

  2. #2
    SitePoint Addict Resident Evil's Avatar
    Join Date
    May 2003
    Location
    Barrow
    Posts
    342
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I Think That Is Server Stuff, tbh.
    I Asked My Host About This before, And They Said Use A Meta Refresh But Im Sure You Can Do It Via Apache. Iff You Are Using php That Is

  3. #3
    Phil fillup07's Avatar
    Join Date
    May 2002
    Location
    Jacksonville, FL
    Posts
    1,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Why?

    Is it a value of the form that is being submitted that needs to be in the querystring, or just some other piece of data?

    Why are you using a POST?

  4. #4
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by JohnSaunders
    I need to change the way a URL is loaded when a form is submitted so that the value shows up like /directory/value/ instead of /directory/?variable=value when using the post method. Can somebody tell me how to accomplish this?
    That's supposed to be on the server-side. Try looking at something like mod_rewrite to do this for you .


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
  •