Jump to content

[SOLVED] Hiding the ECHO function


Amps

Recommended Posts

Hey people,

 

Is there any method of hiding the echo function so it is not visible? Im passing php variables to a flash movie using echo("&var1=$var1&") which works as intended but the code is visible on the screen.

 

 

Thanks.

Link to comment
Share on other sites

what do you mean teh code is visible on screen? do you mean you can see php code in your markup?

 

or do you mean you want to hide all teh flash vars being sent to the swf?

 

If its the latter I suggest that you look a retrieving data within the swf using xml (the xml can be generated by a php script called by the swf) to generate the info.  It could be that you place all the data you need in a session variable, call the php script that generates the data and then clear those session vars - unless someone knows what the session vars are called they will be unable to see what info is being sent...

Link to comment
Share on other sites

Example:

 

I have a index.php page with lots of variables like

 

$var1 = "Whatever";

 

I pass the variables to flash using

 

echo("&var1=$var1&")

 

I have a flash movie on that page which is displaying these variables then BUT

 

since im using echo the variable is ALSO displayed on the body of the page.

Link to comment
Share on other sites

Dont use the same page to create the php variables as your using to embed the flash file into. Been a while since Iv'e done much flash but you should simply call a php script via something like...

 

LoadVars('yourscript.php','GET');

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.