Re: Re: Posting variables from one php script to another

From: Date: Fri, 23 Sep 2005 20:25:48 +0000
Subject: Re: Re: Posting variables from one php script to another
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-223096@lists.php.net to get a copy of this message
Graham Anderson wrote:
The below method is the way I send variables to the movieBuilder.php file [located in the 'src' attribute] with GET Variables It does work :) How would I use CURL to POST the same variables to the movieBuilder.php file WITHIN the 'src' attribute ?
You can't. Browsers make a GET request for the URL listed in the /src/ attribute, and there's nothing you can do about that. PHP doesn't have anything to do with that /src/ attribute, it just prints it out and the browser parses it. On recent Mozilla browsers you can use XMLHTTPRequest to fetch a base64-encoded stream of your data and write it to the src attribute within a "data:" URI scheme, but that won't work on IE or many other browsers. -- Jasper Bryant-Greene Freelance web developer http://jasper.bryant-greene.name/

« previous php.general (#223096) next »