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 Like 36 Dislike
Previous forums Next forums
Other forums

Dynamic links in an include file
I am working on a small piece of code that counts records from a database and displays the result to

Fetching array then reversing it
Hi, I have a simple problem, I'll try to explain it as best I can:
News entries in my database ar

Results from Db outputted twice
Hey guys.. for come reason my data is outputted twise shown in the image below and i cant figure out

Motivational Posters
Hello,

I wonder how can i do them in php. Are there any sample codes that you can show me?

Weird MySQL error, why am I recieving this?
PHP Code:


<?php require "global_settings.php"; ?>
<titl

array_diff weirdness
I'm using the following bit of code

$diff = array_diff($pids, $pidlist);
$diff = array_va

Insert to MySQL inside foreach
Hey.
I am parsing some html, and putting inside an html db.
I need to create a randomized inte

Simple Variable Question
Hi everyone.... again,

I am really getting into php still. Learning more every day. I love it

mail with attachment problems
Hi. I have the following code:
Code: else if(file_exists("site".$timp.".zip")

Retail terminologys not been altered after activing Retail System
Hi, All

After I active Retail System via TCode SWF5, the terms does not been changed, th

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