Jump to content


Photo

Please help!!! Echo Problem reading from php/flash


  • Please log in to reply
3 replies to this topic

#1 tantinga

tantinga
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 02 August 2006 - 07:40 PM

Hello, I have a small problem which is big if I can't find a way out, lol.  I have a mainframe.swf, in this I have an empty movie clip.  Thru this empty movie clip I am loading several other .swf files.  One of those files is my mailform.swf.  It worked great alone but once I loaded it thru the empty movie clip, it didn't send the echo ("thank you, your mail sent" etc) for flash to read out in the box named "answer".  But it still sends the mail to both myself and the person.  Here's the part of code in the php script that I think pertains to my problem:

CODE--------------------------------------------

$sendresult = "Thank you. ";
$send_answer = "answer=";
$send_answer .= rawurlencode($sendresult);
echo "$send_answer";

END CODE---------------------------------------

How can i make this php script work correctly so that the echo is sent to flash.
Thank you to whom may be able to help me....  :)

#2 Drumminxx

Drumminxx
  • Members
  • PipPipPip
  • Advanced Member
  • 92 posts
  • LocationUSA

Posted 02 August 2006 - 09:46 PM

Let me know if this works for you or not


echo "&answer=$send_answer&";


:: gucci.com ::
:: blockbuster.com ::

--------------------

#3 onlyican

onlyican
  • Members
  • PipPipPip
  • Advanced Member
  • 921 posts
  • LocationHants - UK

Posted 02 August 2006 - 10:27 PM

You need to add some Action scrript into the flash
load_variables I think it is
Not 100% sure, so dont hold me against that
Tell me the problem, I will try tell you the solution

#4 Drumminxx

Drumminxx
  • Members
  • PipPipPip
  • Advanced Member
  • 92 posts
  • LocationUSA

Posted 03 August 2006 - 02:52 AM

yea, the above example should work provided that you created a loadVars object in your action script but I figured we should get the php right first and go from there
:: gucci.com ::
:: blockbuster.com ::

--------------------




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users