Jump to content

Keep getting mystery event.htm?1 page


Cep

Recommended Posts

Hi All,

 

I am creating an XHTML site using php which contains video and image files. The idea is that when the script first loads, it will select the default options and output the XHTML via an echo statement at the very end of the script.

 

The user can then use the options available on the XHTML page to load a different video or image file. The script itself works fine (even though its not really finished) but the trouble is when I open the page up in any browser I all of a sudden get a new browser window open trying to point to, http://www.myurl.com/movies/event.htm?1

 

I have no idea where this is coming from, there is and has never been an event.htm but it happens every time my script runs.

 

Here is the script,

 

<?php

// Action variable
if (isset($_POST['action'])) { $action = $_POST['action']; } else { if (isset($_GET['action'])) { $action = $_GET['action']; } else { if (isset($_SESSION['action'])) { $action = $_SESSION['action']; } else { $action = "intro"; } } }

$notes = "07vat_notes.pdf";
$jumper = "<option value=\"\" selected=\"selected\">Jump to section</option>\n<option value=\"one\">Section 1</option>";

switch ($action) {
       case "intro":
            $title = "Introduction";
            $movie = "intro.wmv";
            $slide = "slide_intro.jpg";
            $s_alt = "Introduction to the course";
            $s_title = "Introduction to the course";
            $hidden = "intro";
            $menuoptions = "<a href=\"index.php?action=intro\">VAT UPDATE AND PROBLEM AREAS</a>";
            break;
       case "one":
            $title = "Section 1";
            $movie = "section1.wmv";

            $menuoptions = "<a href=\"index.php?action=one&hidden=1_1\">VAT UPDATE AND PROBLEM AREAS</a><br />";
            $menuoptions .= "<a href=\"index.php?action=one&hidden=1_2\">VAT Update</a><br />";
            $menuoptions .= "<a href=\"index.php?action=one&hidden=1_3\">Flat Rate Scheme 1</a><br />";
            $menuoptions .= "<a href=\"index.php?action=one&hidden=1_4\">Flat Rate Scheme 2</a><br />";
            $menuoptions .= "<a href=\"index.php?action=one&hidden=1_5\">Flat Rate Scheme 3</a><br />";
            $menuoptions .= "<a href=\"index.php?action=one&hidden=1_6\">Flat Rate Scheme 4</a><br />";

            if (isset($_GET['s_var'])) { $hidden = $_GET['s_var']; } else { $hidden = "1_1"; }
            
            switch ($hidden) {
              case "1_1":
                   $slide = "slide_1_1.jpg";
                   $s_alt = "VAT UPDATE AND PROBLEM AREAS";
                   $s_title = "VAT UPDATE AND PROBLEM AREAS";
                   break;
              case "1_2":
                   $slide = "slide_1_2.jpg";
                   $s_alt = "VAT Update";
                   $s_title = "VAT Update";
                   break;
              case "1_3":
                   $slide = "slide_1_3.jpg";
                   $s_alt = "Flat Rate Scheme 1";
                   $s_title = "Flat Rate Scheme 1";
                   break;
              case "1_4":
                   $slide = "slide_1_4.jpg";
                   $s_alt = "Flat Rate Scheme 2";
                   $s_title = "Flat Rate Scheme 2";
                   break;
              case "1_5":
                   $slide = "slide_1_5.jpg";
                   $s_alt = "Flat Rate Scheme 3";
                   $s_title = "Flat Rate Scheme 3";
                   break;
              case "1_6":
                   $slide = "slide_1_6.jpg";
                   $s_alt = "Flat Rate Scheme 4";
                   $s_title = "Flat Rate Scheme 4";
                   break;
            }
            break;
}


$html = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>'.$title.'</title>
</head>
<body>
<table width="100%">
  <tr>
      <td align="center" valign="middle">
          <object data="movies/'.$movie.'" type="video/x-ms-wmv" width="320" height="320">
            <param name="ShowDisplay" value="0" />
            <param name="ShowStatusBar" value="1" />
            <param name="src" value="movies/'.$movie.'" />
            <param name="autostart" value="1" />
            <param name="Volume" value="10" />
            <param name="uiMode" value="full" />
          </object>
      </td>
      <td>
          <img src="images/'.$slide.'" width="640" height="480" alt="'.$s_alt.'" title="'.$s_title.'" />
      </td>
  </tr>
  <tr>
      <td>
          '.$menuoptions.'
      </td>
      <td>
          <a href="notes/'.$notes.'" target="_blank">Course Notes</a>
          <br />
          <br />
          <form name="jumpform" method="post" action="index.php">
            <select name="action" size="1">
            '.$jumper.'
            </select>
          <input name="s_var" type="hidden" value="'.$hidden.'" />
          </form>
      </td>
  </tr>
</table>
</body>
</html>';

echo $html;
?>

 

Can anyone tell me what is causing this?

Link to comment
https://forums.phpfreaks.com/topic/58688-keep-getting-mystery-eventhtm1-page/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.