Page 1 of 1

Simple Syntax Error (Somewhere)

Posted: Wed Mar 08, 2006 6:31 pm
by MichaelK
feyd | Please use

Code: Select all

and

Code: Select all

tags where appropriate when posting code. Read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]


Hi Guys.

First post here today. Iam hoping you can help me out.

In my web browser iam getting the error

Code: Select all

Line: 28
Char: 1
Error: Syntax Error
Code:0
And here is the code

Code: Select all

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<?php
// BOF: WebMakers.com Changed: Header Tag Controller v2.5.2
// Replaced by header_tags.php
if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) {
  require(DIR_WS_INCLUDES . 'header_tags.php');
} else {
?>
  <title><?php echo TITLE; ?></title>
<?php
}
// EOF: WebMakers.com Changed: Header Tag Controller v2.5.2
?>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<link rel="stylesheet" type="text/css" href="stylesheet.css">

</script>
<script language="javascript"><!--
function session_win() {
  window.open("<?php echo tep_href_link(FILENAME_INFO_SHIPPING); ?>","info_shipping","height=460,width=430,toolbar=no,statusbar=no,scrollbars=yes").focus();
}
//--></script>

<script type="text/javascript"><!--
function popupWindow(url) {
  window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150')
}
</head>
<body style="margin: 0 0 0 0">
<!-- header //-->


<?php

  if (isset($HTTP_GET_VARS['Service']))

    require(DIR_WS_INCLUDES . 'headerservice.php');

  else

    if (isset($HTTP_GET_VARS['Support']))

	  require(DIR_WS_INCLUDES . 'headersupport.php');

    else

       require(DIR_WS_INCLUDES . 'header.php');

  ?>

<!-- header_eof //-->

feyd | Please use

Code: Select all

and

Code: Select all

tags where appropriate when posting code. Read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]

Posted: Wed Mar 08, 2006 7:11 pm
by feyd
What's line 28?

Posted: Wed Mar 08, 2006 7:43 pm
by Benjamin
I believe it would be this line but I really don't see anything that stands out that could be wrong with it.

Code: Select all

window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150')

Posted: Wed Mar 08, 2006 7:44 pm
by MichaelK
its all fixed. Thanks for your replys.

The issue was i didnt close the /script tag

thx