SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Wizard boxhead's Avatar
    Join Date
    Feb 2004
    Location
    UK
    Posts
    1,040
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    forward POST info to a second page

    I have a form which uses the POST method. The page it posts to is internal and puts the info in a DB. I then need to go to an external system (different Host) and put the information into a differnet DB. Is there a way I can get the page to forward the POST information to this second page, without the need to resubmit a form of hidden fields?

    cheers

    monkey
    monkey - the rest is history

  2. #2
    SitePoint Evangelist Ed Seedhouse's Avatar
    Join Date
    Aug 2006
    Location
    Victoria, B.C. Canada
    Posts
    592
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by boxhead View Post
    I have a form which uses the POST method. The page it posts to is internal and puts the info in a DB. I then need to go to an external system (different Host) and put the information into a differnet DB. Is there a way I can get the page to forward the POST information to this second page, without the need to resubmit a form of hidden fields?
    Sure, just populate a bunch of hidden input fields with the correct data and variable names and use a bit of javascript to auto submit it.
    Ed Seedhouse

  3. #3
    SitePoint Wizard boxhead's Avatar
    Join Date
    Feb 2004
    Location
    UK
    Posts
    1,040
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Ed Seedhouse View Post
    Sure, just populate a bunch of hidden input fields with the correct data and variable names and use a bit of javascript to auto submit it.
    Thanks - please could you just read the last part of my post!
    monkey - the rest is history


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
  •