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
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
Multiple if statements
Ok so seems basic but for some reason I'm not doing it right. What I want is to be able to have 2 se
How do I give a developer access to a specific directory and nothing else?
I want to give a develop access to a specific directory and nothing else
I can give them an F
Sessions Value Not Saved
Hi,
Im making a login form and im using this code:
Code: if($login=="true"){
$variable = $variable
Hello
Sorry if this is a really simple question but I have run out of ideas. Is there a reall
How to read posted binary data from a mobile device and post it to a web server?
Here is the senario...
I have a mobile device (MD) that posts binary data to a Web Server (WS
header redirect problems? please help
Ok i am making a site that generates youtube thumbnails and i am generating an image that displays 1
losing session vars when arriving from an email link
Hi,
I've got a confirmation script made that sends an email with a link for a user to confirm
Array question
Does anyone know how to create a program that takes the $ amount for 8 different departments and gi
Escaped characters
I have a script that allows you to post news to the home page of my site. Along with the news is the