asavicz 0 Newbie Poster

I am having an issue with a drop down menu putting it on my main page. It is for my tire inventory and will allow my customer to select his tire and find in stock stores. I have it working from my server but when I add the drop down to the main page it errors. Here is my code. I do not have this live right now because of the error. When you goto the link for the drop down it works but doesnt with my main page for some reason:http://70.89.195.37/tire/area.aspx?provider=mwt598

This is my complete mainpage code... Please help!

<?php

$ping = "pong";
include('admin/config.php');

$link = mysql_connect($myHost, $myUser, $myPass);
if (!$link) {
    die('Could not connect: ' . mysql_error());
}

mysql_select_db($myDB);

$homeQuery = mysql_query("SELECT * FROM home where id = '1'");

if (!$homeQuery){
	die("Invalid query");
	}
	
$id = "0";

$content = mysql_result($homeQuery, $id, "content");
$ticker = mysql_result($homeQuery, $id, "ticker"); 
$tickerLink = mysql_result($homeQuery, $id, "tickerLink");

$expire = mysql_result($homeQuery, $id, "date");



if ($expire < mktime(0,0,0,date('m'), date('d'), date('Y'))){
	$ticker="";
}

?>
<html xmlns="http://www.w3.org/1999/xhtml" >

<html>
<head>
<title>Midwest Tire and Auto</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="description" content="We are totally committed to bringing you the most widely recognized and accepted names in the automotive after-market business.">
<meta name="keywords" content="tires, wheels, indiana, northwest, automotive, service, midwest tire and auto, midwest, auto, valparaiso tire and auto, valparaiso">
<link href="mainCSS.css" rel="stylesheet" type="text/css">


<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<style type="text/css">
<!--
.style1 {font-size: larger}
.style2 {color: #FFFFFF}
-->
</style>
</head>
<body>
    <form name="form1" method="post" action="http://70.89.195.37/tire/area.aspx?provider=mwt598" id="form1">
<div>
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__LASTFOCUS" id="__LASTFOCUS" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="wEPDwUJNzI0MDE3MDkyD2QWAgIDD2Q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yMHB4O2ZvbnQtZmFtaWx5OnZlcmRhbmE7Zm9udC1zaXplOjEwcHg7Y29sb3I6I2ZmZmZmZiI+JmNvcHk7MjAwNiANCgk8Zm9udCBmYWNlPSJWZXJkYW5hIj4NCgk8YSB0YXJnZXQ9Il9ibGFuayIgaHJlZj0iaHR0cDovL3d3dy5taWR3ZXN0YXV0by5jb20vIiBzdHlsZT0idGV4dC1kZWNvcmF0aW9uOiBub25lIj4NCgk8c3BhbiBzdHlsZT0iY29sb3I6ICNGRkZGRkY7IGZvbnQtd2VpZ2h0OiA3MDAiPk1pZHdlc3QgVGlyZSAmYW1wOyBBdXRvPC9zcGFuPjwvYT48L2ZvbnQ+IGFsbCByaWdodHMgcmVzZXJ2ZWQ8L2Rpdj4NCjwvY2VudGVyPh8BBQcjRkZGRkZGZGSMA/ovbV8uRsOlWwi+7hV0b82hdQ==" />
</div>

<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['form1'];
if (!theForm) {
    theForm = document.form1;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
//]]>
</script>





<body bgcolor="#666666" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background="images/bgd.gif">
<center>
  <table border="0" cellpadding="0" cellspacing="0">
    <tr>
		<td width="3" bgcolor="#999999"></td>
		<td bgcolor="#FFFFFF">
			<table border="0" cellpadding="0" cellspacing="0">
				<tr>
					<td>
						<img src="images/wheel_left3.gif" width="132" height="106" alt=""></td>
					<td>
						<img src="images/wheel_left4.gif" width="50" height="106" alt=""></td>
					<td colspan="2">
						<img src="images/logo.gif" width="618" height="106" alt="Midwest Tire and Auto Repair and Valparaiso Tire and Auto Repair"></td>
				</tr>
				<tr>
					<td>
						<img src="images/wheel_left2.gif" width="132" height="36" alt=""></td>
<td>
						<img src="images/wheel_right_top.gif" width="50" height="36" alt=""></td>
					<td>
						<img src="images/top_menu_left.gif" width="129" height="36" alt=""></td>
					<td width="489" background="images/top_filler.gif">
				  </td>
				</tr>
			</table>
			
        <table border="0" cellpadding="0" cellspacing="0">
          <tr> 
            <td width="132" valign="top" bgcolor="#CCCCCC"> 
		<table id="Nav_Bar" width="132" height="558" border="0" cellpadding="0" cellspacing="0">
				<tr>
					<td width="132">
						<img src="images/tire_bottom.gif" width="132" height="57" alt=""></td>
				</tr>
				<tr>
					<td>
						<a href="http://www.midwesttire.com">
							<img src="images/home.gif" width="132" height="37" border="0" alt="Home"></a></td>
				</tr>
				<tr>
					<td>
						<a href="tires.php">
							<img src="images/tires.gif" width="132" height="36" border="0" alt="Tires"></a></td>
				</tr>
				<tr>
					<td>
						<a href="wheels.php">
							<img src="images/wheels.gif" width="132" height="37" border="0" alt="Wheels"></a></td>
				</tr>
				<tr>
					<td>
						<a href="service.php">
							<img src="images/service.gif" width="132" height="35" border="0" alt="Auto Repair"></a></td>
				</tr>
				<tr>
					<td>
						<a href="about.php">
							<img src="images/aboutus.gif" width="132" height="36" border="0" alt="About Us"></a></td>
				</tr>
				<tr>
					<td>
						<a href="locations.html">
							<img src="images/locations.gif" width="132" height="39" border="0" alt="Locations"></a></td>
				</tr>
				<tr>
					<td>
						<a href="tips.php">
							<img src="images/tips.gif" width="132" height="34" border="0" alt="Tips"></a></td>
				</tr>
				<tr>
					<td>
						<a href="contactus.html">
							<img src="images/contact.gif" width="132" height="36" border="0" alt="Contact Us"></a></td>
				</tr>
				<tr>
					<td>
						<a href="onlinespecials.php">
							<img src="images/onlinespecials.gif" width="132" height="40" border="0" alt="Online Specials"></a></td>
				</tr>
				<tr>
					<td>
						<a href="advertisedspecials.php">
							<img src="images/advertisedspecials.gif" width="132" height="55" border="0" alt="Advertised Specials"></a></td>
				</tr>
				<tr>
					<td>
						<a href="customercars.html">
							<img src="images/customercars.gif" width="132" height="35" border="0" alt="Customer Cars"></a></td>
				</tr>
				<tr>
					<td>
						<img src="images/flag_bottom.gif" width="132" height="81" alt=""><br/>
                        <center><a href="currentdeals.php" class="lookatme">Discounted Tires!!!</a></center><br/><br/>
						<a href="help.html"><img src="images/helpimg.gif" border=0 alt="Ask the Experts"></a><br/><br/>
						<center><a href="employment.html" class="lookatme">Join our Team!</a></center>					</td>
				</tr>
			</table>            </td>
          <td width="668" height="165" valign="top">
  <table width="668" border="0" cellpadding="0" cellspacing="0" id="banner_struct">
                	<tr>
                    <td height="125"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','668','height','125','title','Banner','src','banner_load','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','banner_load' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="668" height="125" title="Banner">
                      <param name="movie" value="banner_load.swf">
                      <param name="quality" value="high">
                      <embed src="banner_load.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="668" height="125"></embed>
                    </object></noscript></td>
                        
                </tr>
              </table>
                  <table width="668" border="0" cellpadding="0" cellspacing="0">
                    <tr><td width="499" valign="top"><table width="499" border="0" cellspacing="0" cellpadding="15">
                    <tr>
                      <td><table cellpadding="0" cellspacing="0">
                        <tr>
                          <td colspan="4" height="10"></td>
                        </tr>
                        <tr>
                          <td rowspan="3" width="50"></td>
                          <td bgcolor="#333333" colspan="3" align="right" class="bottomNav" height="15">Midwest Tire TV&nbsp;&nbsp;&nbsp;                        </tr>
                        <tr>
                          <td width="10" bgcolor="#333333"></td>
                          <td><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0','width','320','height','240','id','comm_flash','align','','src','comm_flash','quality','high','bgcolor','#FFFFFF','name','comm_flash','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','comm_flash' ); //end AC code
                      </script>
                              <noscript>
                                <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
 					codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
 					WIDTH="320" HEIGHT="240" id="comm_flash" ALIGN="">
                                <PARAM NAME=movie VALUE="comm_flash.swf">
                                <PARAM NAME=quality VALUE=high>
                                <PARAM NAME=bgcolor VALUE=#FFFFFF>
                                <EMBED 						src="comm_flash.swf" quality=high bgcolor=#FFFFFF  WIDTH="320" HEIGHT="240" NAME="comm_flash" ALIGN=""
 					TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
                              </OBJECT>
                                </noscript>                          </td>
                          <td width="10" bgcolor="#333333"></td>
                        <tr>
                          <td bgcolor="#333333" colspan="3" height="10">                        </tr>
                      </table>

                        <p>&nbsp;</p>
						<table width="506" td background="Midwest Tire/tireselector.jpg" "height="143" border="0" align="left" id="tblMain">
	<tr>
		<td height="132" valign="top" nowrap background="tireselector.jpg"> 

    <div style="text-align:center;padding-top:0px">
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p class="style1"><span class="style2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get Started Now </span>
		   <select name="ddlArea" onChange="javascript:setTimeout('__doPostBack(\'ddlArea\',\'\')', 0)" id="ddlArea">
		     <option selected="selected" value="Select your area">Select your area</option>
		     <option value="area1">Indiana - Schererville</option>
		     
		     <option value="area2">Indiana - Valparaiso</option>
		     <option value="area3">Indiana - Merrillville</option>
		     <option value="area4">Indiana - Hobart</option>
		     </select>
		   <br />
		   <br />
		   </p>
		</div>

	</td>
	</tr>
</table>

						
                     
                        <p>&nbsp;</p></td>
                    </tr>
                    <tr>
                      <td><span class="bodyLink"><?php echo $content; ?></span></td>
                    </tr>
                    <tr>
                      <td><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0','width','350','height','50','id','comm_flash2','src','flasher','quality','high','bgcolor','#FFFFFF','name','comm_flash','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','flasher' ); //end AC code
                      </script>
                        <noscript>
                        <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
 					codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
 					WIDTH="350" HEIGHT="50" id="comm_flash2">
                          <PARAM NAME=movie VALUE="flasher.swf">
                          <PARAM NAME=quality VALUE=high>
                          <PARAM NAME=bgcolor VALUE=#FFFFFF>
                          <EMBED 						src="flasher.swf" quality=high bgcolor=#FFFFFF  WIDTH="350" HEIGHT="50" NAME="comm_flash"
 					TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
                        </OBJECT>
                        </noscript>                        </td>
                    </tr>
                  </table></td>
                  <td valign="top">
		       <table border="0" cellpadding="0" cellspacing="0" width="169">
		        <tr>
		          <td height="18">&nbsp;</td>
		  </tr>
		        <tr> 
		          <td width="362" height="60" align="center"> <a href="accconline.php"><img src="images/accclogo.gif" alt="American Care Care Centers" border="0"></a></td>
                </tr>
		        <tr> 
		          <td width="362" height="70"> <a href="accc_freedom.php"><img src="images/accc_freedom.gif" width="169" height="70" alt="ACCC Freedom Plan" border="0"></a></td>
                </tr>
		        <tr> 
		          <td width="362" height="71"> <a href="accc_coasttocoast.php"><img src="images/accc_coast.gif" width="169" height="71" alt="ACCC Coast-To-Coast" border="0"></a></td>
                </tr>
		        <tr> 
		          <td bgcolor="#FFFFFF" valign="top"><img src="images/ASE_Logo.gif" width="169" height="118" alt="ASE"></td>
                </tr>
            </table></td></tr></table></td>
          </tr>
		  <tr> 
		  	<td colspan="2" height="3" bgcolor="#CCCCCC"></td>
          </tr>
          <tr> 
		  	
			<td align="center" bgcolor="#333333" class="bottomNav" colspan=2>
				<a href="index.php" class="bottomNav">Home</a> | 
				<a href="tires.php" class="bottomNav">Tires</a> | 
				<a href="wheels.php" class="bottomNav">Wheels</a> | 
				<a href="service.php" class="bottomNav">Service</a> | 
				<a href="about.php" class="bottomNav">About Us</a> | 
				<a href="locations.html" class="bottomNav">Locations</a> | 
				<a href="tips.php" class="bottomNav">Tips</a> | 
				<a href="contactus.html" class="bottomNav">Contact Us</a> |
				<a href="sitemap.html" class="bottomNav">Site Map</a> |
				<a href="employment.html" class="bottomNav">Employment</a>
				<br/>
				All images and text Copyright &copy; Midwest Tire and Auto 2007				</td>
          </tr>
      </table></td>
		<td width="3" bgcolor="#999999"></td>
	</tr>
</table>
<div>

	<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="http://70.89.195.37/tire/wEWBwKNv8XnBQKrpZBkApTWuYMKAvzW2W4C89bZbgLy1tluAvnW2W61vkcsb7sW0Vk7+cKyJg7hAJ+p3w==" />
</div></form>

</center>
</body>
</html>