RE: [PHP] Passing POST variables w/out a FORM submit
| From: | Damon Hill | Date: | Thu, 13 Nov 2003 22:26:13 +0000 |
| Subject: | RE: [PHP] Passing POST variables w/out a FORM submit | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-169600@lists.php.net to get a copy of this message | ||
Ok, after looking over the code to do the POST manually on your website
Chris, I think I haven't been clear on what needs to happen. I
apologize.
A web browser executes the following code:
<param name=movie
value="flash/platMap.swf?svPath=http://xxxx.xxxx.com/~damon/stvalerydown
s/docs/ww w/flash/platMap.php?getPlatList=true">
<embed
src="flash/platMap.swf?svPath=http://xxxx.xxxxx.com/~damon/docs/www/flas
h/platMap.php?getPlatList=true" quality=high
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_P
rod_Version=ShockwaveFlash" type="application/x-shockwave-flash"
width="698" height="550"></embed>
Now, when the page executes the code, the return value from the
platMap.php should be a POST or a GET response that contains the pData
variable. The platMap.php script creates the pData variable and then
needs to send it back to the flash movie in the POST or GET response.
Hopefully that makes a little more sense. Also, your site may describe
how to do this and I am just no getting it. If that is the case I
apologize in advance for my ignorance.
Thanks.
M Damon Hill
Senior Technical Lead
IFWorld, Inc.
www.ifworld.com
Go Hogs!
"People demand freedom of speech to make up for the freedom of thought
which they avoid."
- Soren Aabye Kierkegaard
-----Original Message-----
From: Chris Shiflett [mailto:shiflett@php.net]
Sent: Thursday, November 13, 2003 3:41 PM
To: Damon Hill; 'php-general@lists.php.net'
Subject: 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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php