PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Mon Sep 23, 2019 8:43 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Tue Mar 31, 2009 12:30 pm 
Offline
Forum Newbie

Joined: Tue Mar 31, 2009 12:22 pm
Posts: 2
i have a html+php page that changes the contents of a flash embedded in it,based on some inputs provided.
but i'm not able to view the changed flash though it is present in the home directory of my xampp server


Top
 Profile  
 
PostPosted: Tue Mar 31, 2009 1:48 pm 
Offline
Forum Commoner
User avatar

Joined: Thu Feb 26, 2009 7:26 pm
Posts: 74
Location: Atlanta, GA
What is your code?


Top
 Profile  
 
PostPosted: Tue Mar 31, 2009 2:39 pm 
Offline
Forum Newbie

Joined: Tue Mar 31, 2009 12:22 pm
Posts: 2
<?php
{
session_start();
if(isset($_SESSION['arr']))
{
if($_POST["text"]=='')
{

startsearch($_POST["search"]);
unset($_SESSION['arr']);
$_SESSION['count']=0;
$_SESSION['arr']=array();
}
else
{
array_push($_SESSION['arr'],$_POST["text"]);
$_SESSION['count']=$_SESSION['count']+1;
}
}
else
{
$_SESSION['count']=0;
$_SESSION['arr']=array();
}
}
?>

<?php


function startsearch($srch)
{
//here we have used php ming to create a flash from the values given by the user

$myMovie->save("linear.swf");
}
?>




<html>
<head>

<title>Learn Data Structures the Flash Way</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="stylesheet.css" type="text/css" />

</head>

<body onLoad="document.f.text.focus()">

<div id="container">




<div id="content">
<span id="flash"><EMBED src="linear.swf" WIDTH=554 HEIGHT=500 loop="false" TYPE="application/x-shockwave-flash" PLUGINSPAGE= "http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" bgcolor="#663333"> </EMBED></span>
<br>

<form name="f" action = "<? echo $_SERVER['PHP_SELF']?>" method="post">
Array value: <input type="text" name="text" value="<?=$text?>" size="30"><br><br>
Search value: <input type="text" name="search" value="<?=$search?>" size="30"><br><br>
<input type="submit" name="sub1">
<br>

*-Press submit after entering every value of the array and finally enter the search value
</form>
</div>
</div>





</body>
</html>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group