Embedding flash object in Else statement
Posted on
16th Feb 2014 07:03 pm by
admin
This is my first major project in PHP and I'm having some trouble embedding a flash object in an Else statement. I've googled it several times, and looked at several sites and they all seem to suggest displaying it with show or echo or print. I've tried them all and
show returns:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/content/m/b/a/mbaveterans/html/Network/resumebook.php on line 107
echo returns:
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/content/m/b/a/mbaveterans/html/Network/resumebook.php on line 107
print returns:
Parse error: syntax error, unexpected T_STRING in /home/content/m/b/a/mbaveterans/html/Network/resumebook.php on line 107
The If..Else statement is below
Code: <?php
if ($pass != $info['password'])
{ header("Location: login.php");
}
else
{
print "<object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" id="doc_804151193636402" name="doc_804151193636402" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" align="middle" height="500" width="100%" >";
print "<param name="movie" value="./flash/book.swf">";
print "<param name="quality" value="high">";
print "<param name="play" value="true">";
print "<param name="loop" value="true">";
print "<param name="scale" value="showall">";
print "<param name="wmode" value="opaque">";
print "<param name="devicefont" value="false">";
print "<param name="bgcolor" value="#ffffff">";
print "<param name="menu" value="true">";
print "<param name="allowFullScreen" value="true">";
print "<param name="allowScriptAccess" value="always">";
print "<param name="salign" value="">";
print "<embed src="./flash/book.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" play="true" loop="true" scale="showall" wmode="opaque" devicefont="false" bgcolor="#ffffff" name="doc_804151193636402_object" menu="true" allowfullscreen="true" allowscriptaccess="always" salign="" type="application/x-shockwave-flash" align="middle" height="650" width="100%">";
print "</embed>";
print "</object>";
echo "<a href=logout.php>Logout</a>";
}
}
}
?>
Any ideas would be much appreciated. Thanks in advance.
No comments posted yet
Your Answer:
Login to answer
212
36
Other forums
ScriptManager History and Opera Issue
I am having an issue in opera with the ScriptManager. I have a ScriptManager on a page with history
array_count_values question?
ok i'm trying to create a top ten list from a database of listed favorite movies.
the followi
Can we convert non uni code system into unicode
Hi All,
Presently i am using non-unicode system and the sap version is 4.7.
Can i c
Save data in input fields when they press "BACK BUTTON"
Hi, this is html form: And let's say they get a error "Please enter ur title must be more then
Ajax not working on IE 6 for Windows CE
I've created a webpage which uses the classis Ajax in following format:view plaincopy to clipboardpr
Server side $_SESSION
how does one keep the session completely server side. no cookies to the browser at all. i need this
natcasesort works on one server but not on another
Hi
I have a problem that I was hoping that someone can help me with.
I'm trying to use
Storing the referrer in session... problems with tabs
Hello All
I am currently working on an ERP project based on the MVC methodology, when a user
Which practice of iteration through containers is preferred
In the "real world" what kind of loop do most people use to iterate through a container like a vecto
Check premium expire
Hi,
I am making a simple file hosting site and want to check if users premium subscriptions h