SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: Creating Post Headers

  1. #1
    SitePoint Addict
    Join Date
    Dec 2000
    Location
    Orange County, Ca
    Posts
    287
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Creating Post Headers

    It has been a long day so if I am not thinking of something very obvious please let me know. I had this thought and wanted to see if it was possible.

    When you use the header function to redirect a user to a new page you must either pass variables in the query string or store them as cookies or session variables to have them available on the new page.

    My question is this: is there a way to manually create a post header so one can redirect a user to a new page without passing variables in the query string. I am not even sure how this would be possible, but I thought I would throw it out there to see if anyone else has ever thought about it or knew of a solution. Thanks.

    Just some random thoughts from a long day.
    Wordpress Auto Installer
    www.webproco.com

  2. #2
    SitePoint Addict seanmayhew's Avatar
    Join Date
    Aug 2002
    Posts
    209
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  3. #3
    SitePoint Addict
    Join Date
    Dec 2000
    Location
    Orange County, Ca
    Posts
    287
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Great idea, I had forgot about that option. Thanks.
    Wordpress Auto Installer
    www.webproco.com

  4. #4
    SitePoint Wizard samsm's Avatar
    Join Date
    Nov 2001
    Location
    Atlanta, GA, USA
    Posts
    5,011
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The thing about post headers is that you are trying to make a user's browser send the headers. For this reason, it's going to require something done in the HTML markup, wrapping lots of things in forms.

    That's a good article. All the premises are good but each of the implementations are a sort of hacks. mod_rewrite, an apache module is actually designed for altering urls. mod_rewrite: A Beginner's Guide to URL Rewriting
    Using your unpaid time to add free content to SitePoint Pty Ltd's portfolio?

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
  •