Jump to content

passing POST variables


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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old.

Join the conversation

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

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.