Link to home
Start Free TrialLog in
Avatar of ecross102301
ecross102301

asked on

Object doesn't support this property or method

I get an error Object doesn't support this property or method line 86 and a syntax error line 101.
<?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

Avatar of ecross102301
ecross102301

ASKER

can anyone come up with a solution on these errors?
Avatar of Michel Plungjan
Please post the view-source code of this.
The line you mention is a line in the RENDERED html
and why redirect with JS instead of PHP?
ASKER CERTIFIED SOLUTION
Avatar of tomaugerdotcom
tomaugerdotcom
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial