Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script error with IE8?
#1
This is a script i was working on and could not work out the problem.
Basically its simply a quote form of sorts. But works fine in FF but not in IE8?
Now i have taken away all the html crap and posted only the code as i think this is where the problem lies. Well im sure of it actually.

PHP Code:
<?php           
$Colors 
$_POST[Colors];
$quantity $_POST[quantity];
$size $_POST[size];
?>
Simple enough.

Now for the processing part.

PHP Code:
<?php
 
/* 1 col A6 */
if ($quantity == "100" && $Colors == "1col" && $size == "a6") {echo "$231.00";}
if (
$quantity == "250" && $Colors == "1col" && $size == "a6") {echo "$253.00";}
if (
$quantity == "500" && $Colors == "1col" && $size == "a6") {echo "$550.00";}
if (
$quantity == "1000" && $Colors == "1col" && $size == "a6") {echo "$792.00";}
if (
$quantity == "2500" && $Colors == "1col" && $size == "a6") {echo "$1892.00";}
 
/* 2 col A6 */
if ($quantity == "100") if ($Colors == "2col") if ($size == "a6") {echo "$319.00";}
if (
$quantity == "250") if ($Colors == "2col") if ($size == "a6") {echo "$352.00";}
if (
$quantity == "500") if ($Colors == "2col") if ($size == "a6") {echo "$682.00";}
if (
$quantity == "1000") if ($Colors == "2col") if ($size == "a6") {echo "$913.00";}
if (
$quantity == "2500") if ($Colors == "2col") if ($size == "a6") {echo "$2178.00";}
/* 3 col A6 */                   
if ($quantity == "100") if ($Colors == "3col") if ($size == "a6") {echo "$330.00";}
if (
$quantity == "250") if ($Colors == "3col") if ($size == "a6") {echo "$418.00";}
if (
$quantity == "500") if ($Colors == "3col") if ($size == "a6") {echo "$792.00";}
if (
$quantity == "1000") if ($Colors == "3col") if ($size == "a6") {echo "$1023.00";}
if (
$quantity == "2500") if ($Colors == "3col") if ($size == "a6") {echo "$2277.00";}
/* 4 col A6 */
if ($quantity == "100") if ($Colors == "4col") if ($size == "a6") {echo "$352.00";}
if (
$quantity == "250") if ($Colors == "4col") if ($size == "a6") {echo "$572.00";}
if (
$quantity == "500") if ($Colors == "4col") if ($size == "a6") {echo "$847.00";}
if (
$quantity == "1000") if ($Colors == "4col") if ($size == "a6") {echo "$1089.00";}
if (
$quantity == "2500") if ($Colors == "4col") if ($size == "a6") {echo "$2365.00";}
  
/* 1 col A5 */                                                
if ($quantity == "100") if ($Colors == "1col") if ($size == "a5") {echo "$308.00";}
if (
$quantity == "250") if ($Colors == "1col") if ($size == "a5") {echo "$550.00";}
if (
$quantity == "500") if ($Colors == "1col") if ($size == "a5") {echo "$759.00";}
if (
$quantity == "1000") if ($Colors == "1col") if ($size == "a5") {echo "$1100.00";}
if (
$quantity == "2500") if ($Colors == "1col") if ($size == "a5") {echo "$2629.00";}
 
/* 2 col A5 */        
if ($quantity == "100") if ($Colors == "2col") if ($size == "a5") {echo "$363.00";}
if (
$quantity == "250") if ($Colors == "2col") if ($size == "a5") {echo "$704.00";}
if (
$quantity == "500") if ($Colors == "2col") if ($size == "a5") {echo "$946.00";}
if (
$quantity == "1000") if ($Colors == "2col") if ($size == "a5") {echo "$1375.00";}
if (
$quantity == "2500") if ($Colors == "2col") if ($size == "a5") {echo "$2860.00";}
/* 3 col A5 */                          
if ($quantity == "100") if ($Colors == "3col") if ($size == "a5") {echo "$396.00";}
if (
$quantity == "250") if ($Colors == "3col") if ($size == "a5") {echo "$726.00";}
if (
$quantity == "500") if ($Colors == "3col") if ($size == "a5") {echo "$968.00";}
if (
$quantity == "1000") if ($Colors == "3col") if ($size == "a5") {echo "$1419.00";}
if (
$quantity == "2500") if ($Colors == "3col") if ($size == "a5") {echo "$3245.00";}
/* 4 col A5 */         
if ($quantity == "100") if ($Colors == "4col") if ($size == "a5") {echo "$439.00";}
if (
$quantity == "250") if ($Colors == "4col") if ($size == "a5") {echo "$759.00";}
if (
$quantity == "500") if ($Colors == "4col") if ($size == "a5") {echo "$1023.00";}
if (
$quantity == "1000") if ($Colors == "4col") if ($size == "a5") {echo "$1485.00";}
if (
$quantity == "2500") if ($Colors == "4col") if ($size == "a5") {echo "$3630.00";}
/* 1 col A4 */                                                    
if ($quantity == "100") if ($Colors == "1col") if ($size == "a4") {echo "$429.00";}
if (
$quantity == "250") if ($Colors == "1col") if ($size == "a4") {echo "$737.00";}
if (
$quantity == "500") if ($Colors == "1col") if ($size == "a4") {echo "$1122.00";}
if (
$quantity == "1000") if ($Colors == "1col") if ($size == "a4") {echo "$1936.00";}
if (
$quantity == "2500") if ($Colors == "1col") if ($size == "a4") {echo "$4290.00";}
/* 2 col A4 */        
if ($quantity == "100") if ($Colors == "2col") if ($size == "a4") {echo "$495.00";}
if (
$quantity == "250") if ($Colors == "2col") if ($size == "a4") {echo "$968.00";}
if (
$quantity == "500") if ($Colors == "2col") if ($size == "a4") {echo "$1309.00";}
if (
$quantity == "1000") if ($Colors == "2col") if ($size == "a4") {echo "$2145.00";}
 if (
$quantity == "2500") if ($Colors == "2col") if ($size == "a4") {echo "$4455.00";}
/* 3 col A4 */                         
if ($quantity == "100") if ($Colors == "3col") if ($size == "a4") {echo "$539.00";}
if (
$quantity == "250") if ($Colors == "3col") if ($size == "a4") {echo "$1275.00";}
if (
$quantity == "500") if ($Colors == "3col") if ($size == "a4") {echo "$1353.00";}
if (
$quantity == "1000") if ($Colors == "3col") if ($size == "a4") {echo "$2497.00";}
if (
$quantity == "2500") if ($Colors == "3col") if ($size == "a4") {echo "$4884.00";}
/* 4 col A4 */        
if ($quantity == "100") if ($Colors == "4col") if ($size == "a4") {echo "$561.00";}
if (
$quantity == "250") if ($Colors == "4col") if ($size == "a4") {echo "$1056.00";}
if (
$quantity == "500") if ($Colors == "4col") if ($size == "a4") {echo "$1430.00";}
if (
$quantity == "1000") if ($Colors == "4col") if ($size == "a4") {echo "$2600.00";}
if (
$quantity == "2500") if ($Colors == "4col") if ($size == "a4") {echo "$5280.00";}
?>

Once again no big deal. Just processing a quote and echoing the result.
Now what i tried to do next is once the form had been processed it produced not only the above result but also a couple of buttons to further navigate. This is where the issue is.

PHP Code:
if ($size == "a4") echo "<a href='processor1.php'><input type='button' action='/' name='Process Order' id='Process' value='Back'></a>";
if (
$size == "a5") echo "<a href='processor1.php'><input type='button' action='/' name='Process Order' id='Process' value='Back'></a>";
if (
$size == "a6") echo "<a href='processor1.php'><input type='button' action='/' name='Process Order' id='Process' value='Back'></a>";
if (
$size == "a4") echo "<a href='processor.php'><input type='button' action='processor.php' name='Process Order' id='Process' value='Process Order'></a>";
if (
$size == "a5") echo "<a href='processor.php'><input type='button' action='processor.php' name='Process Order' id='Process' value='Process Order'></a>";
if (
$size == "a6") echo "<a href='processor.php'><input type='button' action='processor.php' name='Process Order' id='Process' value='Process Order'></a>"

Now please dont bash me on this thread. I am the first to say i know bugger all about php and my code is messy..

EDIT

Sorry i should add. The problem was the buttons would show up but not do anything in IE8 but in FF they work fine.
The Rules!
FTW Forum <-- Home of the Damned! --> Join me On MM


Reply


Messages In This Thread
Script error with IE8? - by DAMINK™ - 10-13-2009, 02:31 AM
RE: Script error with IE8? - by Gaijin - 10-13-2009, 02:34 AM
RE: Script error with IE8? - by DAMINK™ - 10-13-2009, 02:36 AM
RE: Script error with IE8? - by immi - 10-13-2009, 02:38 AM
RE: Script error with IE8? - by DAMINK™ - 10-13-2009, 02:41 AM
RE: Script error with IE8? - by immi - 10-13-2009, 02:47 AM
RE: Script error with IE8? - by Gaijin - 10-13-2009, 02:52 AM
RE: Script error with IE8? - by DAMINK™ - 10-13-2009, 02:52 AM
RE: Script error with IE8? - by Gaijin - 10-13-2009, 03:03 AM
RE: Script error with IE8? - by DAMINK™ - 10-13-2009, 03:07 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  php form script with upload script help andrewjs18 4 2,863 10-07-2010, 11:46 AM
Last Post: JMK940

Forum Jump:


Users browsing this thread: 1 Guest(s)