How to Send Variables Through the Flash Uploader in Wordpress
WordPress includes an editor that lets you customize the way blog posts are stored on the server. This means you can send variables to a Flash file when the user opens the blog post with a Flash animation embedded in the post. You use the PHP editor to send any custom variable, but typically, you send a session ID to the file to customize the way the user interacts with the movie.
Instructions
-
-
1
Open a Web browser and log in to your WordPress dashboard for your blog.
-
2
Click the "Appearance" link in the left panel and then click "Editor." The blog editor opens.
-
-
3
Click the "header.php" page link in the right side of the editing window. This page loads for each blog post, so you know your parameters are sent for each blog post with a Flash file.
-
4
Add the following code in the editor:
session_start();
$_SESSION['param'] = 'value';
session_write_close();Replace "value" with the value you want to pass to the Flash animation.
-
5
Click "Update File" to save the changes to the PHP code.
-
1