Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: FLASH: submitting data and receiving ok from cgi
From: Sven Haiges
Date: Fri, 14 Jan 2000 11:26:35 GMT

Hi!

I am sending form data via flash to a cgi. then the cgi should send a variable back to the flash and the flash would see, if everything is ok.

the problem is, that the ok-variable which is being sent back from the cgi replaces my flash movie. but instead i only want the data which is sent back to be placed as variable in the flash movie.

i use load variables and the get method to send / receive the data.

this is my cgi:

---
#!/usr/bin/perl

print "Content-type: text/html\n\n";

$daten = $ENV{'QUERY_STRING'};

$datenfile = "../aktuell.txt";
schreiben();
print "ok=true";

sub schreiben {
open(OUT, ">$datenfile") || die "Kann $datenfile nicht anlegen / anhaengen: $!";
flock (OUT, 2);
print OUT $daten;
flock (OUT, 8);
close(OUT);
}
--

Do I need another content-type ?! what is the problem, why does the print "ok=true"; create a new view?! after the cgi has been processed, i see the result of print "ok=true"; on the screen (ok=true)...

thanx for your help.

sven



flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Streaming Media WEST '99 Conference & Exhibition
"The Worlds largest Internet Audio & Video Event"
December 7 - 9, San Jose Convention Center, California

Reserve your space today at http://www.streamingmedia.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]