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

Your name:

Reply:


Posted by Al on 10/21/33 11:27

Graham Anderson wrote:
> I am using GET to send variables from one php script to another php script
> How would I POST the same variables ?
>
>
> This is the php script I am sending GET variables to...
> $movieBuilder =
> "./movieBuilder.php?mask=mask.gif&drag=drag.gif&movie=fonovisa.mov";
> I am placing $movieBuilder in the "src = " attribute
>
> Is it possible to POST these same variables to movieBuilder.php ?
>
> The below generates a Quicktime movie:
> $xml = <<<EOB
> <?xml version="1.0"?>
> <?quicktime type="application/x-quicktime-media-link"?>
> <embed
> autoplay="$autoplay"
> cache="$cache"
> kioskmode="$kioskmode"
> quitwhendone="$quitwhendone"
> movieid="$movieid"
> moviename="$moviename"
> src="$movieBuilder"/>
> EOB;
>
>
>
> many thanks

I'd use this. It's simple and doesn't involve CURL. Here is a brief outline.

$file_str= base64encode(serialize($_GET)); //$_GET can be any array

Create a temporary file and write your string

fwrite($temp, $file_str);

fetch your data with

$saved_get= unserialize(base64decode(file_get_contents(filename));

Unlink your file when done with it.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация