Jump to content

HTTP POST help please?


dragonusthei

Recommended Posts

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?
Link to comment
Share on other sites

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.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.