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:

Did you know?Explore Trending and Topic pages for more stories like this.
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 Like 36 Dislike
Previous forums Next forums
Other forums

Can't get the unicode character
I'm trying to get some text from various parts of a file. I have converted the file to hex (bin2hex)

How do I create a 2D game "camera" to follow player?
In J2ME programming I'm targeting MIDP 2.0 devices.

I'm using gamecanvas and I was thinking t

GET vs SUBMIT Button to show sections on one index.php page?
Just curious if one of these ways is better (i.e. more efficient) than the other.

I have a

Help Import Animoto and Youtube
CAn someone help me urgently want to allow users on my website to import youtube/revver/dailymotion

get multiple rows
Hi I want to get multiple rows from a db

I am using this for the db query
Code: public

with clause
hi all, i have a big query that usually access the same table more than once. for example, i have s

Help with echo()
I'm having some problems with this code:

Code: echo '
<A HREF="jav

How do I get the row number from from an sql table query
Hi all

I have a table that I query and it returns a number of rows.
mysql_num_rows($query)

TemplatePower & AJAX
Hi all,



I'm currently implementing some AJAX features in my PHP-framework (which is b

How to return to a previous page after running a PHP script
I'm having a bit of a melt down here because I think this should be really easy but can't work it ou

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash