This is a discussion on Passing POST variables w/out a FORM submit within the PHP General forums, part of the PHP Programming Forums category; Good day! I am reposting this and writing it a little differently so that maybe it is a little clearer ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Good day!
I am reposting this and writing it a little differently so that maybe it is a little clearer what I am attempting to accomplish. I have a flash movie which accesses a MySQL database to retrieve coordinates for a map containing lots for a given subdivision. However, the connection between the flash movie and the database was not available when the project was handed over to me. The flash code can not be modified and it expects a given variable to be returned from the call to the PHP script. This variable should be in either a GET or POST response and will contain the plot number and acreage. I have the PHP script written, however, I am not privy to how to create the POST or GET response without a FORM. If there is some way to accomplish this, please let me know. Thanks in advance for the help. Cheers, M Damon Hill Senior Technical Lead IFWORLD, Inc. www.ifworld.com <http://www.ifworld.com> 479-582-5100 Go Hogs! "Football is just a game; Eternity is forever. Nonetheless, BEAT NEW MEXICO STATE!!! |
|
|||
|
--- Damon Hill <damon@office.IFWORLD.com> wrote:
> I am not privy to how to create the POST or GET response without a > FORM. GET is easy, because you can just use fopen to open a remote URL just as if it were a local file, so long as this is set in your php.ini: allow_url_fopen = On As for POST, there are a number of options. You can use cURL, any of the PEAR classes that allow you to make HTTP requests, or you can do it manually: http://shiflett.org/hacks/php/http_post Hope that helps. Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security Handbook Coming mid-2004 HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp |