Javascript error Object Doesn't support this property or method

I get an error when loading my page:

Line 84 Object doesn't support this property or method

Can someone please help me resolve this?
<?php
session_cache_limiter('none');
session_start();
ob_start();
 
define('THIS PAGE', 'store');
 
include('../store/templates/header.php');
include ("vsadmin/db_conn_open.php");
 
if(isset ($_GET["url"])){
	$url = $_GET["url"];
}
 
$cardbg = $_POST["cardbg"];
echo $cardbg;
 
?>
<input type=hidden name='cardbg' value=".$cardbg;">
 
 
<script type="text/javascript" language="javascript1.2">
 
function HotSpot(target) {
	if (target != 'target-0') new Effect.Fade('target-0', {duration : .3});
	if (target != 'target-1') new Effect.Fade('target-1', {duration : .3});
	if (target != 'target-2') new Effect.Fade('target-2', {duration : .3});
	if (target != 'target-3') new Effect.Fade('target-3', {duration : .3});
	new Effect.Appear(target,{delay : .3, duration : .3});
	return false;
	}
</script>
 
<script type="text/javascript">
  function utmx_section(){
  }
  function utmx(){
  }
  ( function() {
      var k = '0790041258', d = document, l = d.location, c = d.cookie;
      function f( n ) {
        if( c ) {
          var i = c.index0f( n + '=' );
          if ( i >- l ) {
            var j = c.index0f( ';', i );
            return c.substring( i + n.length + 1, j < 0 ? c.length : j )
          }
        }
      }
      var x = f ('__utmx'), xx = f( '__utmxx' ), h = l.hash;
      d.write( '<sc'+'ript src="'+'http'+(l.protocol=='httpd:'?'s://ssl':'://www')+'.google-analytics.com'+'/siteopt.js?v=1&utmxkey='+k+'&utmx='+(x?x:'')+'&utmxx='+(xx?xx:'')+'&utmxtime='+new Date().valueOf()+(h?'&utmxhash='+escape(h.substr(1)):'')+'" type="text/javascript" charset="utf-8"></sc'+'ript>' )
     }
  )();
</script> 
 
<script>
 
} utmx("url",'A/B');
</script>
 
-<div id="body">
	<div id="body_container">
    	<!--<a href="products.php"><img src="../images/clear.gif" alt="clear" width="870" height="160" align="middle" border="0" />
        </a>-->
	<!--<div class="index-left">
    	<div class="box">-->
        	<div id="hotspot-target">
            </div>
        </div>
    </div>
<script>
if(typeof(urchinTracker)!='function')document.write('<sc'+'ript src="'+'http'+(document.location.protocol=='https:'?'s://ssl':'://www')+'.google.analytics.com/urchin.js'+'"></sc'+'ript>')
</script>
<script>
try {
_uacct = 'UA-6193748-1';
urchinTracker("/0790041258/test");
} catch (err) {}
</script>
 
<?php include "vsadmin/db_conn_open.php" ?>
<?php include "vsadmin/inc/languagefile.php" ?>
<?php include "vsadmin/includes.php" ?>
<?php include "vsadmin/inc/incfunctions.php" ?>
 
<!--#BeginLibraryItem -->
<!--"/Library/minicart.lbi"-->
<!--	<div align="right">
		<img src="images/shopping_cart.gif" width="135" height="16" align="right" alt="Shopping cart"/><br/>
</div><br/>
-->
<div style="position: absolute; left: 1290px; top: 50px; height: 400px; width: 100px"><?php include "vsadmin/inc/incminicart.php" ?>
<!--#EndLibraryItem-->
</div>
<form method="post" target="_self">
 
<p style="position: absolute; left: 375px; top: 175px;">Select your card and press Next</p>
<div style="position: absolute; left: 375px; top: 265px; height: 400px; width: 100px"><input type=radio align=middle value="0000004" name=cardbg></div>
<div style="position: absolute; left: 400px; top: 225px; height: 400px; width: 100px"><img src="../store/cardbg/cardbg_0004.png" border="0" height=100 width=200></a>
</div>
<div style="position: absolute; left: 375px; top: 380px; height: 400px; width: 100px"><input type=radio align=middle value="0000001" name=cardbg></div>
<div style="position: absolute; left: 400px; top: 340px; height: 400px; width: 100px"><img src="../store/cardbg/cardbg_0001.png" border="0" height=100 width=200></a>
</div>
<div style="position: absolute; left: 375px; top: 500px; height: 400px; width: 100px"><input type=radio align=middle value="0000002" name=cardbg></div>
<div style="position: absolute; left: 400px; top: 460px; height: 400px; width: 100px"><img src="../store/cardbg/cardbg_0002.png" border="0" height=100 width=200></a>
</div>
<div style="position: absolute; left: 635px; top: 380px; height: 400px; width: 100px"><input type=radio align=middle value="0000003" name=cardbg></div>
<div style="position: absolute; left: 660px; top: 340px; height: 400px; width: 100px"><img src="../store/cardbg/cardbg_0003.png" border="0" height=100 width=200></a>
</div>
<div style="position: absolute; left: 635px; top: 265px; height: 400px; width: 100px"><input type=radio align=middle value="0000005" name=cardbg></div>
<div style="position: absolute; left: 660px; top: 225px; height: 400px; width: 100px"><img src="../store/cardbg/cardbg_0005.png" border="0" height=100 width=200></a>
</div>
<div style="position: absolute; left: 800px; top: 600px;"><input type="image" name="cardbgtype" value="" src="images/next.png">
</div>
</form>
<?php
echo "<input type=hidden name='cardbg' value=$cardbg>";
 
$cardbg = $_POST["cardbg"];
 
//echo $cardbg;
 
$_POST[cardbg] == $_POST["cardbg"];
 
//once the submit button has been clicked
if(isset($_POST["cardbg"])) {
        $cardbg = $_POST["cardbg"];
        //$host = $_SERVER['HTTP_HOST'];
        //$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
        //header('Location: http://192.168.221.128/dvrg04222009/store/?card_id=$cardbg'); //the page to redirect to
	echo "<script type='text/javascript'><!--
						window.location = 'http://192.168.221.128/dvrg04222009/store/?card_id=".$cardbg."'
						//-->
						</script>";
	ob_end_flush();
	exit();
}
 
 elseif(!isset($_POST["cardbg"])) {
        $cardbg = "";
        header('_$GET["url"]);//Location: http://192.168.221.128/dvrg04222009/edstore/design.php');
}
?>
<?php
include('../store/templates/footer.php');                
?>
</body>
</html>

Open in new window

ecross102301Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

HonorGodSoftware EngineerCommented:
If you do something like document.getElementById( ) for a non-existent element, the result is null.  Trying to reference a property, or attribute from null will fail with this error.
0
ecross102301Author Commented:
I don't have anything like that in this code...
0
HonorGodSoftware EngineerCommented:
ok.  Is line 84 actuall this?
<?php include "vsadmin/inc/incfunctions.php" ?>

Open in new window

0
PMI ACP® Project Management

Prepare for the PMI Agile Certified Practitioner (PMI-ACP)® exam, which formally recognizes your knowledge of agile principles and your skill with agile techniques.

ecross102301Author Commented:
This is what I have for line 84:

} catch (err) {}
<?php
session_cache_limiter('none');
session_start();
ob_start();
 
define('THIS PAGE', 'store');
 
include('../store/templates/header.php');
include ("vsadmin/db_conn_open.php");
 
if(isset ($_GET["url"])){
	$url = $_GET["url"];
}
 
$cardbg = "";
 
if (isset($_POST["cardbg"])){
	$cardbg = $_POST["cardbg"];
	echo $cardbg;
} else {
	$cardbg = "";
}
 
?>
<input type=hidden name='cardbg' value=".$cardbg;">
 
 
<script type="text/javascript" language="javascript1.2">
 
function HotSpot(target) {
	if (target != 'target-0') new Effect.Fade('target-0', {duration : .3});
	if (target != 'target-1') new Effect.Fade('target-1', {duration : .3});
	if (target != 'target-2') new Effect.Fade('target-2', {duration : .3});
	if (target != 'target-3') new Effect.Fade('target-3', {duration : .3});
	new Effect.Appear(target,{delay : .3, duration : .3});
	return false;
	}
</script>
 
<script type="text/javascript">
  function utmx_section(){
  }
  function utmx(){
  }
  ( function() {
      var k = '0790041258', d = document, l = d.location, c = d.cookie;
      function f( n ) {
        if( c ) {
          var i = c.index0f( n + '=' );
          if ( i >- l ) {
            var j = c.index0f( ';', i );
            return c.substring( i + n.length + 1, j < 0 ? c.length : j )
          }
        }
      }
      var x = f ('__utmx'), xx = f( '__utmxx' ), h = l.hash;
      d.write( '<sc'+'ript src="'+'http'+(l.protocol=='httpd:'?'s://ssl':'://www')+'.google-analytics.com'+'/siteopt.js?v=1&utmxkey='+k+'&utmx='+(x?x:'')+'&utmxx='+(xx?xx:'')+'&utmxtime='+new Date().valueOf()+(h?'&utmxhash='+escape(h.substr(1)):'')+'" type="text/javascript" charset="utf-8"></sc'+'ript>' )
     }
  )();
</script> 
 
<script>
 
 utmx("url",'A/B');
</script>
 
-<div id="body">
	<div id="body_container">
    	<!--<a href="products.php"><img src="../images/clear.gif" alt="clear" width="870" height="160" align="middle" border="0" />
        </a>-->
	<!--<div class="index-left">
    	<div class="box">-->
        	<div id="hotspot-target">
            </div>
        </div>
    </div>
<script>
if(typeof(urchinTracker)!='function')document.write('<sc'+'ript src="'+'http'+(document.location.protocol=='https:'?'s://ssl':'://www')+'.google.analytics.com/urchin.js'+'"></sc'+'ript>')
</script>
<script>
try {
_uacct = 'UA-6193748-1';
urchinTracker("/0790041258/test");
} catch (err) {}
</script>
 
<?php include "vsadmin/db_conn_open.php"; ?>
<?php include "vsadmin/inc/languagefile.php"; ?>
<?php include "vsadmin/includes.php"; ?>
<?php include "vsadmin/inc/incfunctions.php"; ?>
 
<!--#BeginLibraryItem -->
<!--"/Library/minicart.lbi"-->
<!--	<div align="right">
		<img src="images/shopping_cart.gif" width="135" height="16" align="right" alt="Shopping cart"/><br/>
</div><br/>
-->
<div style="position: absolute; left: 1290px; top: 50px; height: 400px; width: 100px"><?php include "vsadmin/inc/incminicart.php" ?>
<!--#EndLibraryItem-->
</div>
<form method="post" target="_self">
 
<p style="position: absolute; left: 375px; top: 175px;">Select your card and press Next</p>
<div style="position: absolute; left: 375px; top: 265px; height: 400px; width: 100px"><input type=radio align=middle value="0000004" name=cardbg></div>
<div style="position: absolute; left: 400px; top: 225px; height: 400px; width: 100px"><img src="../store/cardbg/cardbg_0004.png" border="0" height=100 width=200></a>
</div>
<div style="position: absolute; left: 375px; top: 380px; height: 400px; width: 100px"><input type=radio align=middle value="0000001" name=cardbg></div>
<div style="position: absolute; left: 400px; top: 340px; height: 400px; width: 100px"><img src="../store/cardbg/cardbg_0001.png" border="0" height=100 width=200></a>
</div>
<div style="position: absolute; left: 375px; top: 500px; height: 400px; width: 100px"><input type=radio align=middle value="0000002" name=cardbg></div>
<div style="position: absolute; left: 400px; top: 460px; height: 400px; width: 100px"><img src="../store/cardbg/cardbg_0002.png" border="0" height=100 width=200></a>
</div>
<div style="position: absolute; left: 635px; top: 380px; height: 400px; width: 100px"><input type=radio align=middle value="0000003" name=cardbg></div>
<div style="position: absolute; left: 660px; top: 340px; height: 400px; width: 100px"><img src="../store/cardbg/cardbg_0003.png" border="0" height=100 width=200></a>
</div>
<div style="position: absolute; left: 635px; top: 265px; height: 400px; width: 100px"><input type=radio align=middle value="0000005" name=cardbg></div>
<div style="position: absolute; left: 660px; top: 225px; height: 400px; width: 100px"><img src="../store/cardbg/cardbg_0005.png" border="0" height=100 width=200></a>
</div>
<div style="position: absolute; left: 800px; top: 600px;"><input type="image" name="cardbgtype" value="" src="images/next.png">
</div>
</form>
<?php
echo "<input type=hidden name='cardbg' value=$cardbg>";
 
$cardbg = $_POST["cardbg"];
 
//echo $cardbg;
 
$_POST[cardbg] == $_POST["cardbg"];
 
//once the submit button has been clicked
if(isset($_POST["cardbg"])) {
        $cardbg = $_POST["cardbg"];
        //$host = $_SERVER['HTTP_HOST'];
        //$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
        //header('Location: http://192.168.221.128/dvrg04222009/store/?card_id=$cardbg'); //the page to redirect to
	echo "<script type='text/javascript'><!--
						window.location = 'http://192.168.221.128/dvrg04222009/store/?card_id='".$cardbg."'
						//-->
						</script>";
	ob_end_flush();
	exit();
}
 
 elseif(!isset($_POST["cardbg"])) {
        $cardbg = "";
        header('_$GET["url"]);//Location: http://192.168.221.128/dvrg04222009/edstore/design.php');
}
?>
<?php
include('../store/templates/footer.php');                
?>
</body>
</html>

Open in new window

0
HonorGodSoftware EngineerCommented:
That's not the line causing the error.  We're missing something earlier.

Try adding a blank line earlier in the file, and see if the line # in error increases.
If it does, move the blank line up, and until the line number in error doesn't change.

You can use this technique to fairly quickly narrow down to the line in error.
Especially if you use a "binary search" technique.

e.g., Insert blank line at line 128
Does error line number change?  No, move blank line to 64
Does error line number change?  If so, error is between 64 & 128, move it to 96 (half way between 64 & 128)...

This way, you "rule out" 1/2 of the remaining lines...
0
ecross102301Author Commented:
The error is between lines 32 and 64, when I input a blank line on 32 the errror moved to line 83...
0
HonorGodSoftware EngineerCommented:
keep narrowing.

What's the line in error?
0
ecross102301Author Commented:
Ok I am getting these errors now and can't seem to find/fix what is going on:

Line 83 Object doesn't support this property or method.

And, line 135       echo "<script type='text/javascript'>window.location = 'http://192.168.221.128/dvrg04222009/store/?card_id='".$cardbg."'</script>"; is appearing on screen and should not.. Can someone please help me?
<?php
session_cache_limiter('none');
session_start();
ob_start();
 
define('THIS PAGE', 'store');
 
include('../store/templates/header.php');
include ("vsadmin/db_conn_open.php");
 
if(isset ($_GET["url"])){
	$url = $_GET["url"];
}
 
$cardbg = "";
 
if (isset($_POST["cardbg"])){
	$cardbg = $_POST["cardbg"];
	echo $cardbg;
} else {
	$cardbg = "";
}
 
?>
<input type=hidden name='cardbg' value=$cardbg>
 
 
<script type="text/javascript" language="javascript1.2">
 
function HotSpot(target) {
	if (target != 'target-0') new Effect.Fade('target-0', {duration : .3});
	if (target != 'target-1') new Effect.Fade('target-1', {duration : .3});
	if (target != 'target-2') new Effect.Fade('target-2', {duration : .3});
	if (target != 'target-3') new Effect.Fade('target-3', {duration : .3});
	new Effect.Appear(target,{delay : .3, duration : .3});
	return false;
	}
</script>
<script type="text/javascript">
  function utmx_section(){
  }
  function utmx(){
  }
  ( function() {
      var k = '0790041258', d = document, l = d.location, c = d.cookie;
      function f( n ) {
        if( c ) { 
	 var i = c.index0f( n + '=' );
          if ( i >- l ) {
            var j = c.index0f( ';', i );
            return c.substring( i + n.length + 1, j < 0 ? c.length : j )
          }
        }
      }
      var x = f ('__utmx'), xx = f( '__utmxx' ), h = l.hash;
      d.write( '<sc'+'ript src="'+'http'+(l.protocol=='httpd:'?'s://ssl':'://www')+'.google-analytics.com'+'/siteopt.js?v=1&utmxkey='+k+'&utmx='+(x?x:'')+'&utmxx='+(xx?xx:'')+'&utmxtime='+new Date().valueOf()+(h?'&utmxhash='+escape(h.substr(1)):'')+'" type="text/javascript" charset="utf-8"></sc'+'ript>' )
     }
  )();
</script> 
 
<script>
 
utmx("url",'A/B');
</script>
-<div id="body">
	<div id="body_container">
    	<!--<a href="products.php"><img src="../images/clear.gif" alt="clear" width="870" height="160" align="middle" border="0" />
        </a>-->
	<!--<div class="index-left">
    	<div class="box">-->
        	<div id="hotspot-target">
            </div>
        </div>
    </div>
<script>
if(typeof(urchinTracker)!='function')document.write('<sc'+'ript src="'+'http'+(document.location.protocol=='https:'?'s://ssl':'://www')+'.google.analytics.com/urchin.js'+'"></sc'+'ript>')
</script>
<script>
try {
_uacct = 'UA-6193748-1';
urchinTracker("/0790041258/test");
} catch (err) {}
</script>
 
<?php include "vsadmin/db_conn_open.php"; ?>
<?php include "vsadmin/inc/languagefile.php"; ?>
<?php include "vsadmin/includes.php"; ?>
<?php include "vsadmin/inc/incfunctions.php"; ?>
 
<!--#BeginLibraryItem -->
<!--"/Library/minicart.lbi"-->
<!--	<div align="right">
		<img src="images/shopping_cart.gif" width="135" height="16" align="right" alt="Shopping cart"/><br/>
</div><br/>
-->
<div style="position: absolute; left: 1290px; top: 50px; height: 400px; width: 100px"><?php include "vsadmin/inc/incminicart.php"; ?>
<!--#EndLibraryItem-->
</div>
<form method="post" target="_self">
 
<p style="position: absolute; left: 375px; top: 175px;">Select your card and press Next</p>
<div style="position: absolute; left: 375px; top: 265px; height: 400px; width: 100px"><input type=radio align=middle value="0000004" name=cardbg></div>
<div style="position: absolute; left: 400px; top: 225px; height: 400px; width: 100px"><img src="../store/cardbg/cardbg_0004.png" border="0" height=100 width=200></a>
</div>
<div style="position: absolute; left: 375px; top: 380px; height: 400px; width: 100px"><input type=radio align=middle value="0000001" name=cardbg></div>
<div style="position: absolute; left: 400px; top: 340px; height: 400px; width: 100px"><img src="../store/cardbg/cardbg_0001.png" border="0" height=100 width=200></a>
</div>
<div style="position: absolute; left: 375px; top: 500px; height: 400px; width: 100px"><input type=radio align=middle value="0000002" name=cardbg></div>
<div style="position: absolute; left: 400px; top: 460px; height: 400px; width: 100px"><img src="../store/cardbg/cardbg_0002.png" border="0" height=100 width=200></a>
</div>
<div style="position: absolute; left: 635px; top: 380px; height: 400px; width: 100px"><input type=radio align=middle value="0000003" name=cardbg></div>
<div style="position: absolute; left: 660px; top: 340px; height: 400px; width: 100px"><img src="../store/cardbg/cardbg_0003.png" border="0" height=100 width=200></a>
</div>
<div style="position: absolute; left: 635px; top: 265px; height: 400px; width: 100px"><input type=radio align=middle value="0000005" name=cardbg></div>
<div style="position: absolute; left: 660px; top: 225px; height: 400px; width: 100px"><img src="../store/cardbg/cardbg_0005.png" border="0" height=100 width=200></a>
</div>
<div style="position: absolute; left: 800px; top: 600px;"><input type="image" name="cardbgtype" value="" src="images/next.png">
</div>
</form>
<?php
echo "<input type=hidden name='cardbg' value=".$_POST["cardbg"];">";
 
$cardbg = $_POST["cardbg"];
 
//echo $cardbg;
 
$_POST[cardbg] == $_POST["cardbg"];
 
//once the submit button has been clicked
if(isset($_POST["cardbg"])) {
        $cardbg = $_POST["cardbg"];
        //$host = $_SERVER['HTTP_HOST'];
        //$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
        //header('Location: http://192.168.221.128/dvrg04222009/store/?card_id=$cardbg'); //the page to redirect to
	echo "<script type='text/javascript'>window.location = 'http://192.168.221.128/dvrg04222009/store/?card_id='".$cardbg."'</script>";
	ob_end_flush();
	exit();
}
 
 elseif(!isset($_POST["cardbg"])) {
        $cardbg = "";
        header('_$GET["url"]);//Location: http://192.168.221.128/dvrg04222009/edstore/design.php');
}
?>
<?php
include('../store/templates/footer.php');                
?>
</body>
</html>

Open in new window

0
HonorGodSoftware EngineerCommented:
But what is on line 83?
0
ecross102301Author Commented:
I don't know...
0
HonorGodSoftware EngineerCommented:
That was the point of inserting the blank line... To locate the exact text of the line about which the browser was complaining...
0
ecross102301Author Commented:
I understand that, but I am causing more errors by doing so, so I stopped. I just need an answer to this please.
0
HonorGodSoftware EngineerCommented:
I can't answer it until I see the line that is causing the error.

Where, and how are you adding blank links that "cause more errors"?

Try just adding a blank line immediately after an existing blank line.  That shouldn't cause more errors, just help us localize the line that is causing the issue.
0
ecross102301Author Commented:
Error is somewhee in this code.
<script type="text/javascript">
 
  function utmx_section(){
  }
  function utmx(){
  }
  ( function() {
      var k = '0790041258', d = document, l = d.location, c = d.cookie;
      function f( n ) {
        if( c ) {
         var i = c.index0f( n + '=' );
          if ( i >- l ) {
            var j = c.index0f( ';', i );
            return c.substring( i + n.length + 1, j < 0 ? c.length : j )
          }
        }
      }
 
 
      var x = f ('__utmx'), xx = f( '__utmxx' ), h = l.hash;
 
 
      d.write( '<sc'+'ript src="'+'http'+(l.protocol=='httpd:'?'s://ssl':'://www')+'.google-analytics.com'+'/siteopt.js?v=1&utmxkey='+k+'&utmx='+(x?x:'')+'&utmxx='+(xx?xx:'')+'&utmxtime='+new Date().valueOf()+(h?'&utmxhash='+escape(h.substr(1)):'')+'" type="text/javascript" charset="utf-8"></sc'+'ript>' )
     }
  )();
</script>

Open in new window

0
hieloCommented:
on your original post, on line 58 you have:
0
hieloCommented:
I meant to say:
0
hieloCommented:
Darn, this  dumb site keeps cutting off the post. Get rid of the closing brace ( closing "curly bracket".)
0
HonorGodSoftware EngineerCommented:
hielo!  Excellent catch


Remove the closing curly brace on the line that has utmx(
<script>
 
} utmx("url",'A/B');
</script>

Open in new window

0
ecross102301Author Commented:
Now I get two new errors plus still have the line 134 issue that is showing up on the page when I don't want it to!

echo "<script type='text/javascript'>window.location = 'http://192.168.221.128/dvrg04222009/store/?card_id='".$cardbg."'</script>"; is appearing on screen and should not.. Can someone please help me?

<?php
session_cache_limiter('none');
session_start();
ob_start();
 
define('THIS PAGE', 'store');
 
include('../store/templates/header.php');
include ("vsadmin/db_conn_open.php");
 
if(isset ($_GET["url"])){
	$url = $_GET["url"];
}
 
$cardbg = "";
 
if (isset($_POST["cardbg"])){
	$cardbg = $_POST["cardbg"];
	//echo $cardbg;
} else {
	$cardbg = "";
}
 
?>
<input type=hidden name='cardbg' value=$cardbg>
 
<script type="text/javascript" language="javascript1.2">
 
function HotSpot(target) {
	if (target != 'target-0') new Effect.Fade('target-0', {duration : .3});
	if (target != 'target-1') new Effect.Fade('target-1', {duration : .3});
	if (target != 'target-2') new Effect.Fade('target-2', {duration : .3});
	if (target != 'target-3') new Effect.Fade('target-3', {duration : .3});
	new Effect.Appear(target,{delay : .3, duration : .3});
	return false;
	}
</script>
<script type="text/javascript">
 
  function utmx_section(){
  }
  function utmx(){
  }
  ( function() {
      var k = '0790041258', d = document, l = d.location, c = d.cookie;
      function f( n ) {
        if( c ) { 
	 var i = c.index0f( n + '=' );
          if ( i >- l ) {
            var j = c.index0f( ';', i );
            return c.substring( i + n.length + 1, j < 0 ? c.length : j )
          }
        }
      }
 
      var x = f ('__utmx'), xx = f( '__utmxx' ), h = l.hash;
 
      d.write( '<sc'+'ript src="'+'http'+(l.protocol=='httpd:'?'s://ssl':'://www')+'.google-analytics.com'+'/siteopt.js?v=1&utmxkey='+k+'&utmx='+(x?x:'')+'&utmxx='+(xx?xx:'')+'&utmxtime='+new Date().valueOf()+(h?'&utmxhash='+escape(h.substr(1)):'')+'" type="text/javascript" charset="utf-8"></sc'+'ript>' )
     }
  ();
</script> 
 
<script>
 
utmx("url",'A/B');
</script>
 
<div id="body">
	<div id="body_container">
    	<!--<a href="products.php"><img src="../images/clear.gif" alt="clear" width="870" height="160" align="middle" border="0" />
        </a>-->
	<!--<div class="index-left">
    	<div class="box">-->
        	<div id="hotspot-target">
            </div>
        </div>
    </div>
<script>
if(typeof(urchinTracker)!='function')document.write('<sc'+'ript src="'+'http'+(document.location.protocol=='https:'?'s://ssl':'://www')+'.google.analytics.com/urchin.js'+'"></sc'+'ript>')
</script>
<script>
try {
_uacct = 'UA-6193748-1';
urchinTracker("/0790041258/test");
} catch (err) {}
</script>
 
<?php include "vsadmin/db_conn_open.php"; ?>
<?php include "vsadmin/inc/languagefile.php"; ?>
<?php include "vsadmin/includes.php"; ?>
<?php include "vsadmin/inc/incfunctions.php"; ?>
 
<!--#BeginLibraryItem -->
<!--"/Library/minicart.lbi"-->
<!--	<div align="right">
		<img src="images/shopping_cart.gif" width="135" height="16" align="right" alt="Shopping cart"/><br/>
</div><br/>
-->
<div style="position: absolute; left: 1290px; top: 50px; height: 400px; width: 100px"><?php include "vsadmin/inc/incminicart.php"; ?>
<!--#EndLibraryItem-->
</div>
<form method="post" target="_self">
 
<p style="position: absolute; left: 375px; top: 175px;">Select your card and press Next</p>
<div style="position: absolute; left: 375px; top: 265px; height: 400px; width: 100px"><input type=radio align=middle value="0000004" name=cardbg></div>
<div style="position: absolute; left: 400px; top: 225px; height: 400px; width: 100px"><img src="../store/cardbg/cardbg_0004.png" border="0" height=100 width=200></a>
</div>
<div style="position: absolute; left: 375px; top: 380px; height: 400px; width: 100px"><input type=radio align=middle value="0000001" name=cardbg></div>
<div style="position: absolute; left: 400px; top: 340px; height: 400px; width: 100px"><img src="../store/cardbg/cardbg_0001.png" border="0" height=100 width=200></a>
</div>
<div style="position: absolute; left: 375px; top: 500px; height: 400px; width: 100px"><input type=radio align=middle value="0000002" name=cardbg></div>
<div style="position: absolute; left: 400px; top: 460px; height: 400px; width: 100px"><img src="../store/cardbg/cardbg_0002.png" border="0" height=100 width=200></a>
</div>
<div style="position: absolute; left: 635px; top: 380px; height: 400px; width: 100px"><input type=radio align=middle value="0000003" name=cardbg></div>
<div style="position: absolute; left: 660px; top: 340px; height: 400px; width: 100px"><img src="../store/cardbg/cardbg_0003.png" border="0" height=100 width=200></a>
</div>
<div style="position: absolute; left: 635px; top: 265px; height: 400px; width: 100px"><input type=radio align=middle value="0000005" name=cardbg></div>
<div style="position: absolute; left: 660px; top: 225px; height: 400px; width: 100px"><img src="../store/cardbg/cardbg_0005.png" border="0" height=100 width=200></a>
</div>
<div style="position: absolute; left: 800px; top: 600px;"><input type="image" name="cardbgtype" value="" src="images/next.png">
</div>
</form>
<?php
echo "<input type=hidden name='cardbg' value=".$_POST["cardbg"];">";
 
$cardbg = $_POST["cardbg"];
 
$_POST[cardbg] == $_POST["cardbg"];
 
//once the submit button has been clicked
if(isset($_POST["cardbg"])) {
        $cardbg = $_POST["cardbg"];
	echo "<script type='text/javascript'>" . "\n";
	echo "window.location = 'http://192.168.221.128/dvrg04222009/store/?card_id=".$cardbg."';</script>";
	ob_end_flush();
	exit();
}elseif(!isset($_POST["cardbg"])) {
        $cardbg = "";
 
}
?>
<?php
include('../store/templates/footer.php');                
?>
</body>
</html>

Open in new window

0
HonorGodSoftware EngineerCommented:
You removed the closing curly brace from the wrong line!

Line 60 (above)  should be:

}();

0
ecross102301Author Commented:
Nope, that did not fix any of my errors. I get these errors now:

Line 95 Expect  ')'

Line 100 Error Object Expected

And, I still have the issue with line 134 displaying on my page and it needs to not display.
0
HonorGodSoftware EngineerCommented:
Sorry, typographical error.  Line 60 should be:

)();
)();

Open in new window

0
ecross102301Author Commented:
Now I have Line 95 syntax error and Line 100 object expected. AND I STILL HAVE THE ISSUE WITH LINE 134 DISPLAYING ON MY PAGE AND IT NEEDS NOT TO DISPLAY
<?php
session_cache_limiter('none');
session_start();
ob_start();
 
define('THIS PAGE', 'store');
 
include('../store/templates/header.php');
include ("vsadmin/db_conn_open.php");
 
if(isset ($_GET["url"])){
	$url = $_GET["url"];
}
 
$cardbg = "";
 
if (isset($_POST["cardbg"])){
	$cardbg = $_POST["cardbg"];
	//echo $cardbg;
} else {
	$cardbg = "";
}
 
?>
<input type=hidden name='cardbg' value=$cardbg>
 
<script type="text/javascript" language="javascript1.2">
 
function HotSpot(target) {
	if (target != 'target-0') new Effect.Fade('target-0', {duration : .3});
	if (target != 'target-1') new Effect.Fade('target-1', {duration : .3});
	if (target != 'target-2') new Effect.Fade('target-2', {duration : .3});
	if (target != 'target-3') new Effect.Fade('target-3', {duration : .3});
	new Effect.Appear(target,{delay : .3, duration : .3});
	return false;
	}
</script>
<script type="text/javascript">
 
  function utmx_section(){
  }
  function utmx(){
  }
  ( function() {
      var k = '0790041258', d = document, l = d.location, c = d.cookie;
      function f( n ) {
        if( c ) { 
	 var i = c.index0f( n + '=' );
          if ( i >- l ) {
            var j = c.index0f( ';', i );
            return c.substring( i + n.length + 1, j < 0 ? c.length : j )
          }
        }
      }
 
      var x = f ('__utmx'), xx = f( '__utmxx' ), h = l.hash;
 
      d.write( '<sc'+'ript src="'+'http'+(l.protocol=='httpd:'?'s://ssl':'://www')+'.google-analytics.com'+'/siteopt.js?v=1&utmxkey='+k+'&utmx='+(x?x:'')+'&utmxx='+(xx?xx:'')+'&utmxtime='+new Date().valueOf()+(h?'&utmxhash='+escape(h.substr(1)):'')+'" type="text/javascript" charset="utf-8"></sc'+'ript>' )
     
  )();
</script> 
 
<script>
 
utmx("url",'A/B');
</script>
 
<div id="body">
	<div id="body_container">
    	<!--<a href="products.php"><img src="../images/clear.gif" alt="clear" width="870" height="160" align="middle" border="0" />
        </a>-->
	<!--<div class="index-left">
    	<div class="box">-->
        	<div id="hotspot-target">
            </div>
        </div>
    </div>
<script>
if(typeof(urchinTracker)!='function')document.write('<sc'+'ript src="'+'http'+(document.location.protocol=='https:'?'s://ssl':'://www')+'.google.analytics.com/urchin.js'+'"></sc'+'ript>')
</script>
<script>
try {
_uacct = 'UA-6193748-1';
urchinTracker("/0790041258/test");
} catch (err) {}
</script>
 
<?php include "vsadmin/db_conn_open.php"; ?>
<?php include "vsadmin/inc/languagefile.php"; ?>
<?php include "vsadmin/includes.php"; ?>
<?php include "vsadmin/inc/incfunctions.php"; ?>
 
<!--#BeginLibraryItem -->
<!--"/Library/minicart.lbi"-->
<!--	<div align="right">
		<img src="images/shopping_cart.gif" width="135" height="16" align="right" alt="Shopping cart"/><br/>
</div><br/>
-->
<div style="position: absolute; left: 1290px; top: 50px; height: 400px; width: 100px"><?php include "vsadmin/inc/incminicart.php"; ?>
<!--#EndLibraryItem-->
</div>
<form method="post" target="_self">
 
<p style="position: absolute; left: 375px; top: 175px;">Select your card and press Next</p>
<div style="position: absolute; left: 375px; top: 265px; height: 400px; width: 100px"><input type=radio align=middle value="0000004" name=cardbg></div>
<div style="position: absolute; left: 400px; top: 225px; height: 400px; width: 100px"><img src="../store/cardbg/cardbg_0004.png" border="0" height=100 width=200></a>
</div>
<div style="position: absolute; left: 375px; top: 380px; height: 400px; width: 100px"><input type=radio align=middle value="0000001" name=cardbg></div>
<div style="position: absolute; left: 400px; top: 340px; height: 400px; width: 100px"><img src="../store/cardbg/cardbg_0001.png" border="0" height=100 width=200></a>
</div>
<div style="position: absolute; left: 375px; top: 500px; height: 400px; width: 100px"><input type=radio align=middle value="0000002" name=cardbg></div>
<div style="position: absolute; left: 400px; top: 460px; height: 400px; width: 100px"><img src="../store/cardbg/cardbg_0002.png" border="0" height=100 width=200></a>
</div>
<div style="position: absolute; left: 635px; top: 380px; height: 400px; width: 100px"><input type=radio align=middle value="0000003" name=cardbg></div>
<div style="position: absolute; left: 660px; top: 340px; height: 400px; width: 100px"><img src="../store/cardbg/cardbg_0003.png" border="0" height=100 width=200></a>
</div>
<div style="position: absolute; left: 635px; top: 265px; height: 400px; width: 100px"><input type=radio align=middle value="0000005" name=cardbg></div>
<div style="position: absolute; left: 660px; top: 225px; height: 400px; width: 100px"><img src="../store/cardbg/cardbg_0005.png" border="0" height=100 width=200></a>
</div>
<div style="position: absolute; left: 800px; top: 600px;"><input type="image" name="cardbgtype" value="" src="images/next.png">
</div>
</form>
<?php
echo "<input type=hidden name='cardbg' value=".$_POST["cardbg"];">";
 
$cardbg = $_POST["cardbg"];
 
$_POST[cardbg] == $_POST["cardbg"];
 
//once the submit button has been clicked
if(isset($_POST["cardbg"])) {
        $cardbg = $_POST["cardbg"];
	echo "<script type='text/javascript'>" . "\n";
	echo "window.location = 'http://192.168.221.128/dvrg04222009/store/?card_id=".$cardbg."';</script>";
	ob_end_flush();
	exit();
}elseif(!isset($_POST["cardbg"])) {
        $cardbg = "";
}
?>
<?php
include('../store/templates/footer.php');                
?>

Open in new window

0
HonorGodSoftware EngineerCommented:
Change all of the

<script>      (i.e., open script tags)

to

<script type="text/javascript">

Does the error on "line 95" still exist?
Let's figure out which line that is.
0
ecross102301Author Commented:
yes it still exists
<?php
session_cache_limiter('none');
session_start();
ob_start();
 
define('THIS PAGE', 'store');
 
include('../store/templates/header.php');
include ("vsadmin/db_conn_open.php");
 
if(isset ($_GET["url"])){
	$url = $_GET["url"];
}
 
$cardbg = "";
 
if (isset($_POST["cardbg"])){
	$cardbg = $_POST["cardbg"];
	//echo $cardbg;
} else {
	$cardbg = "";
}
 
?>
<input type=hidden name='cardbg' value=$cardbg>
 
<script type="text/javascript" language="javascript1.2">
 
function HotSpot(target) {
	if (target != 'target-0') new Effect.Fade('target-0', {duration : .3});
	if (target != 'target-1') new Effect.Fade('target-1', {duration : .3});
	if (target != 'target-2') new Effect.Fade('target-2', {duration : .3});
	if (target != 'target-3') new Effect.Fade('target-3', {duration : .3});
	new Effect.Appear(target,{delay : .3, duration : .3});
	return false;
	}
</script>
<script type="text/javascript">
 
  function utmx_section(){
  }
  function utmx(){
  }
  ( function() {
      var k = '0790041258', d = document, l = d.location, c = d.cookie;
      function f( n ) {
        if( c ) { 
	 var i = c.index0f( n + '=' );
          if ( i >- l ) {
            var j = c.index0f( ';', i );
            return c.substring( i + n.length + 1, j < 0 ? c.length : j )
          }
        }
      }
 
      var x = f ('__utmx'), xx = f( '__utmxx' ), h = l.hash;
 
      d.write( '<sc'+'ript src="'+'http'+(l.protocol=='httpd:'?'s://ssl':'://www')+'.google-analytics.com'+'/siteopt.js?v=1&utmxkey='+k+'&utmx='+(x?x:'')+'&utmxx='+(xx?xx:'')+'&utmxtime='+new Date().valueOf()+(h?'&utmxhash='+escape(h.substr(1)):'')+'" type="text/javascript" charset="utf-8"></sc'+'ript>' )
     
  )();
</script> 
 
<script type="text/javascript">
 
 
 utmx("url",'A/B');
</script>
 
<div id="body">
	<div id="body_container">
    	<!--<a href="products.php"><img src="../images/clear.gif" alt="clear" width="870" height="160" align="middle" border="0" />
        </a>-->
	<!--<div class="index-left">
    	<div class="box">-->
        	<div id="hotspot-target">
            </div>
        </div>
    </div>
<script type="text/javascript">
if(typeof(urchinTracker)!='function')document.write('<sc'+'ript src="'+'http'+(document.location.protocol=='https:'?'s://ssl':'://www')+'.google.analytics.com/urchin.js'+'"></sc'+'ript>')
</script>
<script type="text/javascript">
 
try {
_uacct = 'UA-6193748-1';
urchinTracker("/0790041258/test");
} catch (err) {}
</script>
 
<?php include "vsadmin/db_conn_open.php"; ?>
<?php include "vsadmin/inc/languagefile.php"; ?>
<?php include "vsadmin/includes.php"; ?>
<?php include "vsadmin/inc/incfunctions.php"; ?>
 
<!--#BeginLibraryItem -->
<!--"/Library/minicart.lbi"-->
 
<div style="position: absolute; left: 1290px; top: 50px; height: 400px; width: 100px"><?php include "vsadmin/inc/incminicart.php"; ?>
<!--#EndLibraryItem-->
</div>
<form method="post" target="_self">
 
<p style="position: absolute; left: 375px; top: 175px;">Select your card and press Next</p>
<div style="position: absolute; left: 375px; top: 265px; height: 400px; width: 100px"><input type=radio align=middle value="0000004" name=cardbg></div>
<div style="position: absolute; left: 400px; top: 225px; height: 400px; width: 100px"><img src="../store/cardbg/cardbg_0004.png" border="0" height=100 width=200></a>
</div>
<div style="position: absolute; left: 375px; top: 380px; height: 400px; width: 100px"><input type=radio align=middle value="0000001" name=cardbg></div>
<div style="position: absolute; left: 400px; top: 340px; height: 400px; width: 100px"><img src="../store/cardbg/cardbg_0001.png" border="0" height=100 width=200></a>
</div>
<div style="position: absolute; left: 375px; top: 500px; height: 400px; width: 100px"><input type=radio align=middle value="0000002" name=cardbg></div>
<div style="position: absolute; left: 400px; top: 460px; height: 400px; width: 100px"><img src="../store/cardbg/cardbg_0002.png" border="0" height=100 width=200></a>
</div>
<div style="position: absolute; left: 635px; top: 380px; height: 400px; width: 100px"><input type=radio align=middle value="0000003" name=cardbg></div>
<div style="position: absolute; left: 660px; top: 340px; height: 400px; width: 100px"><img src="../store/cardbg/cardbg_0003.png" border="0" height=100 width=200></a>
</div>
<div style="position: absolute; left: 635px; top: 265px; height: 400px; width: 100px"><input type=radio align=middle value="0000005" name=cardbg></div>
<div style="position: absolute; left: 660px; top: 225px; height: 400px; width: 100px"><img src="../store/cardbg/cardbg_0005.png" border="0" height=100 width=200></a>
</div>
<div style="position: absolute; left: 800px; top: 600px;"><input type="image" name="cardbgtype" value="" src="images/next.png">
</div>
</form>
<?php
echo "<input type=hidden name='cardbg' value=".$_POST["cardbg"];">";
 
$cardbg = $_POST["cardbg"];
 
$_POST[cardbg] == $_POST["cardbg"];
 
//once the submit button has been clicked
if(isset($_POST["cardbg"])) {
        $cardbg = $_POST["cardbg"];
	echo "<script type='text/javascript'>" . "\n";
	echo "window.location = 'http://192.168.221.128/dvrg04222009/store/?card_id=".$cardbg."';</script>";
	ob_end_flush();
	exit();
}elseif(!isset($_POST["cardbg"])) {
        $cardbg = "";
}
?>
<?php
include('../store/templates/footer.php');                
?>

Open in new window

0
ecross102301Author Commented:
Line 95 is this:

 )();

which is what you had me just change following this line:

d.write( '<sc'+'ript src="'+'http'+(l.protocol=='httpd:'?'s://ssl':'://www')+'.google-analytics.com'+'/siteopt.js?v=1&utmxkey='+k+'&utmx='+(x?x:'')+'&utmxx='+(xx?xx:'')+'&utmxtime='+new Date().valueOf()+(h?'&utmxhash='+escape(h.substr(1)):'')+'" type="text/javascript" charset="utf-8"></sc'+'ript>' )
0
ecross102301Author Commented:
I fixed the window.location code displaying on my page but still have the errors Line 95 and Line 101
0
HonorGodSoftware EngineerCommented:
Well the utmx related code appears right, yet you say that you are getting a syntax error in it?
<script type="text/javascript">
  function utmx_section(){
  }
  function utmx(){
  }
  ( function() {
      var k = '0790041258', d = document, l = d.location, c = d.cookie;
      function f( n ) {
        if( c ) { 
	 var i = c.index0f( n + '=' );
          if ( i >- l ) {
            var j = c.index0f( ';', i );
            return c.substring( i + n.length + 1, j < 0 ? c.length : j )
          }
        }
      }
      var x = f ('__utmx'), xx = f( '__utmxx' ), h = l.hash;
      d.write( '<sc'+'ript src="'+'http'+(l.protocol=='httpd:'?'s://ssl':'://www')+'.google-analytics.com'+'/siteopt.js?v=1&utmxkey='+k+'&utmx='+(x?x:'')+'&utmxx='+(xx?xx:'')+'&utmxtime='+new Date().valueOf()+(h?'&utmxhash='+escape(h.substr(1)):'')+'" type="text/javascript" charset="utf-8"></sc'+'ript>' )
  )();
</script> 

Open in new window

0
ecross102301Author Commented:
yes sir
0
HonorGodSoftware EngineerCommented:
I wonder if this part of your PHP corresponds with the head, or the body portion of the document...

If it is the head portion, that could very well be the problem, because you shouldn't be using

document.write()

in the <head> section of the document.  And that is what "d.write()" is.

I don't know enough about PHP to tell...

If you comment out the line that starts with

  d.write(

by starting it with

//

i.e., so it looks like:

//d.write(

does your syntax error go away?
0
ecross102301Author Commented:
when I comment that line out I still get the same errors, so that is not it.
0
ecross102301Author Commented:
Ok I am making progress but here is what I have now:

Line 78 object doesn't support this property or method
0
NerdsOfTechTechnology ScientistCommented:
Error with if SYNTAX
Line 80.

Mission complete.


if(typeof(urchinTracker)!='function'){
 document.write('<sc'+'ript src="'+'http'+(document.location.protocol=='https:'?'s://ssl':'://www')+'.google.analytics.com/urchin.js'+'"></sc'+'ript>');
}

Open in new window

0
NerdsOfTechTechnology ScientistCommented:
Integrated///
<?php
session_cache_limiter('none');
session_start();
ob_start();
 
define('THIS PAGE', 'store');
 
include('../store/templates/header.php');
include ("vsadmin/db_conn_open.php");
 
if(isset ($_GET["url"])){
	$url = $_GET["url"];
}
 
$cardbg = "";
 
if (isset($_POST["cardbg"])){
	$cardbg = $_POST["cardbg"];
	//echo $cardbg;
} else {
	$cardbg = "";
}
 
?>
<input type=hidden name='cardbg' value=$cardbg>
 
<script type="text/javascript" language="javascript1.2">
 
function HotSpot(target) {
	if (target != 'target-0') new Effect.Fade('target-0', {duration : .3});
	if (target != 'target-1') new Effect.Fade('target-1', {duration : .3});
	if (target != 'target-2') new Effect.Fade('target-2', {duration : .3});
	if (target != 'target-3') new Effect.Fade('target-3', {duration : .3});
	new Effect.Appear(target,{delay : .3, duration : .3});
	return false;
	}
</script>
<script type="text/javascript">
 
  function utmx_section(){
  }
  function utmx(){
  }
  ( function() {
      var k = '0790041258', d = document, l = d.location, c = d.cookie;
      function f( n ) {
        if( c ) { 
	 var i = c.index0f( n + '=' );
          if ( i >- l ) {
            var j = c.index0f( ';', i );
            return c.substring( i + n.length + 1, j < 0 ? c.length : j )
          }
        }
      }
 
      var x = f ('__utmx'), xx = f( '__utmxx' ), h = l.hash;
 
      d.write( '<sc'+'ript src="'+'http'+(l.protocol=='httpd:'?'s://ssl':'://www')+'.google-analytics.com'+'/siteopt.js?v=1&utmxkey='+k+'&utmx='+(x?x:'')+'&utmxx='+(xx?xx:'')+'&utmxtime='+new Date().valueOf()+(h?'&utmxhash='+escape(h.substr(1)):'')+'" type="text/javascript" charset="utf-8"></sc'+'ript>' )
     
  )();
</script> 
 
<script type="text/javascript">
 
 
 utmx("url",'A/B');
</script>
 
<div id="body">
	<div id="body_container">
    	<!--<a href="products.php"><img src="../images/clear.gif" alt="clear" width="870" height="160" align="middle" border="0" />
        </a>-->
	<!--<div class="index-left">
    	<div class="box">-->
        	<div id="hotspot-target">
            </div>
        </div>
    </div>
<script type="text/javascript">
if(typeof(urchinTracker)!='function'){
 document.write('<sc'+'ript src="'+'http'+(document.location.protocol=='https:'?'s://ssl':'://www')+'.google.analytics.com/urchin.js'+'"></sc'+'ript>');
}
</script>
<script type="text/javascript">
 
try {
_uacct = 'UA-6193748-1';
urchinTracker("/0790041258/test");
} catch (err) {}
</script>
 
<?php include "vsadmin/db_conn_open.php"; ?>
<?php include "vsadmin/inc/languagefile.php"; ?>
<?php include "vsadmin/includes.php"; ?>
<?php include "vsadmin/inc/incfunctions.php"; ?>
 
<!--#BeginLibraryItem -->
<!--"/Library/minicart.lbi"-->
 
<div style="position: absolute; left: 1290px; top: 50px; height: 400px; width: 100px"><?php include "vsadmin/inc/incminicart.php"; ?>
<!--#EndLibraryItem-->
</div>
<form method="post" target="_self">
 
<p style="position: absolute; left: 375px; top: 175px;">Select your card and press Next</p>
<div style="position: absolute; left: 375px; top: 265px; height: 400px; width: 100px"><input type=radio align=middle value="0000004" name=cardbg></div>
<div style="position: absolute; left: 400px; top: 225px; height: 400px; width: 100px"><img src="../store/cardbg/cardbg_0004.png" border="0" height=100 width=200></a>
</div>
<div style="position: absolute; left: 375px; top: 380px; height: 400px; width: 100px"><input type=radio align=middle value="0000001" name=cardbg></div>
<div style="position: absolute; left: 400px; top: 340px; height: 400px; width: 100px"><img src="../store/cardbg/cardbg_0001.png" border="0" height=100 width=200></a>
</div>
<div style="position: absolute; left: 375px; top: 500px; height: 400px; width: 100px"><input type=radio align=middle value="0000002" name=cardbg></div>
<div style="position: absolute; left: 400px; top: 460px; height: 400px; width: 100px"><img src="../store/cardbg/cardbg_0002.png" border="0" height=100 width=200></a>
</div>
<div style="position: absolute; left: 635px; top: 380px; height: 400px; width: 100px"><input type=radio align=middle value="0000003" name=cardbg></div>
<div style="position: absolute; left: 660px; top: 340px; height: 400px; width: 100px"><img src="../store/cardbg/cardbg_0003.png" border="0" height=100 width=200></a>
</div>
<div style="position: absolute; left: 635px; top: 265px; height: 400px; width: 100px"><input type=radio align=middle value="0000005" name=cardbg></div>
<div style="position: absolute; left: 660px; top: 225px; height: 400px; width: 100px"><img src="../store/cardbg/cardbg_0005.png" border="0" height=100 width=200></a>
</div>
<div style="position: absolute; left: 800px; top: 600px;"><input type="image" name="cardbgtype" value="" src="images/next.png">
</div>
</form>
<?php
echo "<input type=hidden name='cardbg' value=".$_POST["cardbg"];">";
 
$cardbg = $_POST["cardbg"];
 
$_POST[cardbg] == $_POST["cardbg"];
 
//once the submit button has been clicked
if(isset($_POST["cardbg"])) {
        $cardbg = $_POST["cardbg"];
	echo "<script type='text/javascript'>" . "\n";
	echo "window.location = 'http://192.168.221.128/dvrg04222009/store/?card_id=".$cardbg."';</script>";
	ob_end_flush();
	exit();
}elseif(!isset($_POST["cardbg"])) {
        $cardbg = "";
}
?>
<?php
include('../store/templates/footer.php');                
?>

Open in new window

0
ecross102301Author Commented:
still getting syntax error line 95
still getting object expected line 101
0
ecross102301Author Commented:
can someone please help me resolve these two errors?
still getting syntax error line 95
still getting object expected line 101
0
HonorGodSoftware EngineerCommented:
What's on line 95?
What's on line 101?
0
NerdsOfTechTechnology ScientistCommented:
Try:
<?php
session_cache_limiter('none');
session_start();
ob_start();
 
define('THIS PAGE', 'store');
 
include('../store/templates/header.php');
include ("vsadmin/db_conn_open.php");
 
if(isset ($_GET["url"])){
	$url = $_GET["url"];
}
 
$cardbg = $_POST["cardbg"];
echo $cardbg;
 
?>
<input type=hidden name='cardbg' value=".$cardbg;">
 
 
<script type="text/javascript" language="javascript1.2">
 
function HotSpot(target) {
	if (target != 'target-0') new Effect.Fade('target-0', {duration : .3});
	if (target != 'target-1') new Effect.Fade('target-1', {duration : .3});
	if (target != 'target-2') new Effect.Fade('target-2', {duration : .3});
	if (target != 'target-3') new Effect.Fade('target-3', {duration : .3});
	new Effect.Appear(target,{delay : .3, duration : .3});
	return false;
	}
</script>
 
<script type="text/javascript">
  function utmx_section(){
  }
  function utmx(){
  }
  ( function() {
      var k = '0790041258', d = document, l = d.location, c = d.cookie;
      function f( n ) {
        if( c ) {
          var i = c.index0f( n + '=' );
          if ( i >- l ) {
            var j = c.index0f( ';', i );
            return c.substring( i + n.length + 1, j < 0 ? c.length : j )
          }
        }
      }
      var x = f ('__utmx'), xx = f( '__utmxx' ), h = l.hash;
      d.write( '<sc'+'ript src="'+'http'+(l.protocol=='httpd:'?'s://ssl':'://www')+'.google-analytics.com'+'/siteopt.js?v=1&utmxkey='+k+'&utmx='+(x?x:'')+'&utmxx='+(xx?xx:'')+'&utmxtime='+new Date().valueOf()+(h?'&utmxhash='+escape(h.substr(1)):'')+'" type="text/javascript" charset="utf-8"></sc'+'ript>' )
     }
  )();
</script> 
 
<script>
 
} utmx("url",'A/B');
</script>
 
-<div id="body">
	<div id="body_container">
    	<!--<a href="products.php"><img src="../images/clear.gif" alt="clear" width="870" height="160" align="middle" border="0" />
        </a>-->
	<!--<div class="index-left">
    	<div class="box">-->
        	<div id="hotspot-target">
            </div>
        </div>
    </div>
<script>
if(typeof(urchinTracker)!='function'){
 document.write('<sc'+'ript src="'+'http'+(document.location.protocol=='https:'?'s://ssl':'://www')+'.google.analytics.com/urchin.js'+'"></sc'+'ript>');
}
 
try {
_uacct = 'UA-6193748-1';
urchinTracker("/0790041258/test");
} catch (err) {}
</script>
 
<?php include "vsadmin/db_conn_open.php" ?>
<?php include "vsadmin/inc/languagefile.php" ?>
<?php include "vsadmin/includes.php" ?>
<?php include "vsadmin/inc/incfunctions.php" ?>
 
<!--#BeginLibraryItem -->
<!--"/Library/minicart.lbi"-->
<!--	<div align="right">
		<img src="images/shopping_cart.gif" width="135" height="16" align="right" alt="Shopping cart"/><br/>
</div><br/>
-->
<div style="position: absolute; left: 1290px; top: 50px; height: 400px; width: 100px"><?php include "vsadmin/inc/incminicart.php" ?>
<!--#EndLibraryItem-->
</div>
<form method="post" target="_self">
 
<p style="position: absolute; left: 375px; top: 175px;">Select your card and press Next</p>
<div style="position: absolute; left: 375px; top: 265px; height: 400px; width: 100px"><input type=radio align=middle value="0000004" name=cardbg></div>
<div style="position: absolute; left: 400px; top: 225px; height: 400px; width: 100px"><img src="../store/cardbg/cardbg_0004.png" border="0" height=100 width=200></a>
</div>
<div style="position: absolute; left: 375px; top: 380px; height: 400px; width: 100px"><input type=radio align=middle value="0000001" name=cardbg></div>
<div style="position: absolute; left: 400px; top: 340px; height: 400px; width: 100px"><img src="../store/cardbg/cardbg_0001.png" border="0" height=100 width=200></a>
</div>
<div style="position: absolute; left: 375px; top: 500px; height: 400px; width: 100px"><input type=radio align=middle value="0000002" name=cardbg></div>
<div style="position: absolute; left: 400px; top: 460px; height: 400px; width: 100px"><img src="../store/cardbg/cardbg_0002.png" border="0" height=100 width=200></a>
</div>
<div style="position: absolute; left: 635px; top: 380px; height: 400px; width: 100px"><input type=radio align=middle value="0000003" name=cardbg></div>
<div style="position: absolute; left: 660px; top: 340px; height: 400px; width: 100px"><img src="../store/cardbg/cardbg_0003.png" border="0" height=100 width=200></a>
</div>
<div style="position: absolute; left: 635px; top: 265px; height: 400px; width: 100px"><input type=radio align=middle value="0000005" name=cardbg></div>
<div style="position: absolute; left: 660px; top: 225px; height: 400px; width: 100px"><img src="../store/cardbg/cardbg_0005.png" border="0" height=100 width=200></a>
</div>
<div style="position: absolute; left: 800px; top: 600px;"><input type="image" name="cardbgtype" value="" src="images/next.png">
</div>
</form>
<?php
echo "<input type=hidden name='cardbg' value=$cardbg>";
 
$cardbg = $_POST["cardbg"];
 
//echo $cardbg;
 
$_POST[cardbg] == $_POST["cardbg"];
 
//once the submit button has been clicked
if(isset($_POST["cardbg"])) {
        $cardbg = $_POST["cardbg"];
        //$host = $_SERVER['HTTP_HOST'];
        //$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
        //header('Location: http://192.168.221.128/dvrg04222009/store/?card_id=$cardbg'); //the page to redirect to
	echo "<script type='text/javascript'><!--
						window.location = 'http://192.168.221.128/dvrg04222009/store/?card_id=".$cardbg."'
						//-->
						</script>";
	ob_end_flush();
	exit();
}
 
 elseif(!isset($_POST["cardbg"])) {
        $cardbg = "";
        header('_$GET["url"]);//Location: http://192.168.221.128/dvrg04222009/edstore/design.php');
}
?>
<?php
include('../store/templates/footer.php');                
?>
</body>
</html>

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JScript

From novice to tech pro — start learning today.