Passing POST variables w/out a FORM submit

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


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-13-2003
Damon Hill
 
Posts: n/a
Default Passing POST variables w/out a FORM submit

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


Reply With Quote
  #2 (permalink)  
Old 11-13-2003
Chris Shiflett
 
Posts: n/a
Default Re: [PHP] Passing POST variables w/out a FORM submit

--- 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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:59 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0