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
need a script for 3 pages
I have a customer who wants me to set up a site with a number of pages with the following requiremen
having a small php error tha deals with the 'foreach'
Last night i was working on a script for a cart and it seemed to working good, until this morning. F
Checking if variable is 0 as opposed to NULL/Empty...
I'm trying to write some code that will retrieve a user's access level from my database and if it do
Problem with shopcart code
Hello, I am having a bit of trouble being able to add a product to my shopcart. My mysql database i
LinkedList help
Ok so I just learned quickly about lists, so I have a not too hard project I think, but am having a
Delete HTML file after loading
I have limited experience with php and its been a year or two since I've last used it. I have a sma
Supress some serveroutput but not all
Hi,
I have a script I'm working on that uses plsql to create and RMAN script, this uses d
How to get exact 3 moths post date from today date using javascript
How to get exact 3 moths post date from today date using javascript
Please help
Material Issuing for receiving batch
Dear All experts in MM/ PP,
Material issuing from main stores to factory is currently usi
include function being weird?
I have a very simple system to grab an IP outputted by a PHP file.. (for a project I have) but it ou