FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » doctype not found?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: doctype not found? [message #173624 is a reply to message #173616] Wed, 20 April 2011 22:10 Go to previous messageGo to previous message
geoff is currently offline  geoff
Messages: 8
Registered: April 2011
Karma:
Junior Member
On Wed, 20 Apr 2011 18:05:18 +0200, "Álvaro G. Vicario"
<alvaro(dot)NOSPAMTHANX(at)demogracia(dot)com(dot)invalid> wrote:

Álvar

I have given up the approach I was using and the following seems OK at

http://www.micro-active.com/index.php

The sound is played on the first visit in a session but not on the
second and I get no php errors and also the W3C HTML Validator finds
no errors.

I am checking to see that if the $_SESSION["index_with_sound"] is not
set then the the audio is played. The $_SESSION["index_with_sound" is
set after that part of the code so when the user goes to another page
and then returns to index.php the $_SESSION["index_with_sound"] is set
and so no sound is played.

The logic seem OK to you?

There is a problem with IE9 in that although the page is centred on
the first visit (using css), after going to another page and then
returning to the index.php file, the page is no longer centred and the
drop down menu no longer works!

This does not happen with other browsers.

Any ideas?

Cheers

Geoff

<?php
//error_reporting(E_ALL);
session_start();
if (!isset($_SESSION["index_with_sound"])) {
echo "
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01//EN'
'http://www.w3.org/TR/html4/strict.dtd'>
<html>
<head>
<meta http-equiv='Content-Type'
content='text/html;charset=iso-8859-1'>
<!-- SEARCH-ENGINE-OFF -->
<title>Micro Active Net Ltd Home page</title>
<script type='text/javascript'
src='assets/javascripts/soundmanager2.js'></script>
<script type='text/javascript'
src='assets/javascripts/jquery-1.5.1.js'></script>
<script type='text/javascript'>
soundManager.debugMode = false;
soundManager.onready(function () {
/*soundManager.createSound('helloWorld',
'assets/audio-new/chord1.mp3');*/
soundManager.createSound('helloWorld',
'assets/audio-new/welcome-plus6.mp3');
soundManager.play('helloWorld');
});
</script>
";
}
$_SESSION["index_with_sound"] = "yes";
?>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Parameter passing question
Next Topic: My contact form is not emailed to me
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 10:40:52 GMT 2024

Total time taken to generate the page: 0.04125 seconds