Jump to content

passing POST variables


searls03

Recommended Posts

this may be a vague question, but is there a way for PHP to generate a POST variable and then send that variable to a page on a different server?  

 

so PHP creates lets say a POST variable for "name" (this should be equivalent to an html form with the name of "name"), so then it can submit to a form on an external server that only accepts specific names of elements?  does this make sense?  

Link to comment
https://forums.phpfreaks.com/topic/276331-passing-post-variables/
Share on other sites

Well in that case, I don't think there is a way to do it solely by PHP.

 

You would need a form, with the method of POST, then submit that form by JavaScript or a manual submit button click.

 

Someone else may come up with something, but I can't think of anything.

Your doing it wrong.

 

You need to read up on and get a basic understanding of what http is and how it works before you start telling people with experience that they are wrong.

 

There is no such thing as "going to a page" in http. You make a request, the server sends you a response.

 

Until you understand some basics, your own your own.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.