Jump to content


Photo

HTTP POST help please?


  • Please log in to reply
3 replies to this topic

#1 dragonusthei

dragonusthei
  • Members
  • PipPipPip
  • Advanced Member
  • 46 posts

Posted 10 October 2006 - 11:31 AM

Hey,

Im setting something up where i need to handle post data then send it back to the server

the bit im struggling on is i dont know how to send post data without submiting it through a form?

this is how the thing needs to work

outside server sends post data[no problem] -> my server sends post data back to there server [problem]


so how do i send post data to a url without using a submit button how do i just send the post array to a server?

#2 GremlinP1R

GremlinP1R
  • Members
  • PipPipPip
  • Advanced Member
  • 62 posts
  • LocationSouth Africa

Posted 10 October 2006 - 11:34 AM

Try to make the post data script in a defernt file with just comands and just include it in the origanal page

#3 dragonusthei

dragonusthei
  • Members
  • PipPipPip
  • Advanced Member
  • 46 posts

Posted 10 October 2006 - 11:57 AM

what?

how do i send post data without submiting it with a button etc?

#4 GremlinP1R

GremlinP1R
  • Members
  • PipPipPip
  • Advanced Member
  • 62 posts
  • LocationSouth Africa

Posted 10 October 2006 - 12:05 PM

You create a background file.

lets say your main page is Home.php create a Background.php file (any name)
then you put all your comands in there that you would have done for the submit button. But just the PHP commands no other html and things.
Then in your Home.php you just tell him to include('background.php');
As you open the home.php it will auto maticly run the background.php in the background of the page and execute all comands in there.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users