coding problem

telsave

DW Member +
Joined
Jun 8, 2002
Messages
658
Reaction score
33
Location
Newcastle
Hi can anyone help please with a bit of PHP programming error. I have written some code for an online directory which works perfectly in Firefox but will not move from a page in IE. The page in question I have included the coding below. When selecting the section set up 'Ireland' Firefox goes straiht from directory.php to nairl.php but IE remains on directory.php can anyone see any errors I have missed please.

The error must occur I believe where the coding begins.

<h1>Please Select Country From </h1>
<h1>Drop Down Menu Below:</h1>

Coding for page

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="keywords" content="">
<meta name="description" content="">
<link href="Test/kontaxtstyle.css" rel="stylesheet" type="text/css">

<TITLE>Counsellors</TITLE>

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function checkFields() {

region = document.searchform.region.value;

ra_qpc = document.searchform.ra_qpc.checked;
ra_tpc = document.searchform.ra_tpc.checked;
ra_apc = document.searchform.ra_apc.checked;
ra_sup = document.searchform.ra_sup.checked;
ra_tr = document.searchform.ra_tr.checked;

cw_adult = document.searchform.cw_adult.checked;
cw_child = document.searchform.cw_child.checked;
cw_couple = document.searchform.cw_couple.checked;
cw_family = document.searchform.cw_family.checked;
cw_group = document.searchform.cw_group.checked;

if (region == "Please Select"){
alert("Please choose a Country or County from the drop down list.");
return false;
}

else return true;
}


// End -->
</script>

<style type="text/css">
<!--
.body .maintableborder tr td table tr .contentarea h1 {
color: #FFF;
}
.body .maintableborder tr td table tr .contentarea h3 p {
color: #FFF;
}
-->
</style>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="10" class="body">

<a name=bttop></a>
<table align=center width=800 class=maintableborder cellpadding=0 cellspacing=0>
<tr>

<th colspan="2" align="center" valign="middle" class=titletext1><h1 align="center"><img src="http://daviddutch.com/eacnewsletter/march/images/logo.gif" alt="eac" width="247" height="100" align="left" longdesc="http://daviddutch.com/eacnewsletter/march/images/logo.gif">Euro Network Directory</h1></th>
</tr>
<tr>
<td colspan="2" align="right" class=topmenu1>&nbsp;</td>
</tr>
<tr>
<td class=topmenu1 colspan="2">&nbsp;</td>
</tr>
<tr>
<td class=topmenu1 colspan="2">

<p><a href="http://eac.eu.com">Home</a> | <a href="http://eac.eu.com">National Associations | </a><a href="http://eac.eu.com/index.php?/contact-us.html">Contact Us</a> | <a href="http://eac.eu.com/index.php?/about-eac.html/">About EAC</a></p>




</td>
</tr>
<tr>
<td class="menuleftbg" valign="top" width=200px>
<div class="sectionTitle">Navigation Menu</div>
<table cellspacing="0" width=100% class="menuleft" border="0">



</tr>

<tr>
<td class="out" onMouseOver="this.className='over'" onMouseOut="this.className='out'"></td>
</tr>

</table>
<p>&nbsp;</p>
</td>

<td valign="top" width=600> <table align=center width="100%" cellpadding="5" cellspacing="0">
<tr>
<td class="cellheadermiddle"></td>
</tr>
<tr>
<td align="center" bgcolor="#03649b" class="contentarea">


<h1>Please Select Country From </h1>
<h1>Drop Down Menu Below:</h1>
<body>
<form name="findacountry">
<select name="menu" class="contentarea" style="font-size:12px;color:#006699;font-family:verdana;background-color:#ffffff;">
<option value="http://eacnews.net/directory/nagr.php">Greece</option>
<option value="http://eacnews.net/directory/nairl.php"><a href="http://eacnews.net/directory/nairl.php">Ireland</a></option>
<option value="http://eacnews.net/directory/nai.php">Italy</option>
<option value="http://eacnews.net/directory/nanl.php">Netherlands</option>
<option value="http://eacnews.net/directory/narus.php">Russia</option>
<option value="http://eacnews.net/directory/nasrb.php">Serbia</option>
<option value="http://eacnews.net/directory/nas.php">Sweden</option>
<option value="http://eacnews.net/directory/nach.php">Switzerland</option>
<option value="http://eacnews.net/directory/nagb.php">United Kingdom</option>
</select>
<input style="font-size:12px;color:#ffffff;font-family:verdana;background-color:#006699;" type="button" onClick="window.open(document.findacountry.menu.op tions[document.findacountry.menu.selectedIndex].value);" value="Search">
</form>
<h3><p>IMPORTANT NOTICE to Companies / Organisations wishing to approach the entrants of this Directory. The directory is provided&nbsp;<strong>only&nbsp;</strong>for the purposes of finding a Counsellor / Psychotherapist and details should&nbsp;<strong>not</strong>&nbsp;be used for marketing purposes. Please ensure that this is respected at all times.</p>
<p>Please&nbsp;note that not all of the European Association for Counselling Members are listed within this Directory. Only those who have chosen to advertise their services will be shown</p></h3>
<p>&nbsp;</p>
</td>
</tr>
<tr>
<td class="bottomcellheadermiddle">
<table border=0 cellpadding=0 cellspacing=0 width='100%'>
<tr>
<td class=datechanged>&nbsp;</td>

</tr>

</table>
</table>
<br>
<p class=footer align=center>
<b>European Association for Counselling</b><br>&nbsp;<b style=color:#84a486>&bull;</b>&nbsp;<br/>
Email:&nbsp;<a href=mailto:[email protected]>[email protected]</a><br/><br/>
Content Copyright &copy;2011North East Business Services<br>
<a href=http://northeastbusinessservices.co.uk target=_blank style=text-decoration:none>Web Designed by </a><a href="http://northeastbusinessservices.co.uk">North East Business Services</a><br><br><a href=Test/login.asp style='color:#652caa;text-decoration:none'><img src="http://daviddutch.com/eacnewsletter/march/images/logo.gif" width="247" height="100" alt="eac" longdesc="http://daviddutch.com/eacnewsletter/march/images/logo.gif"></a>
</p>

</td>
</tr>
</table>
</body>
</html>


If anyone can help I would be grateful

Thanks

Dave
 
Last edited:
remove space in menu options

onClick="window.open(document.findacountry.menu.op tions[document.findacountry.menu.selectedIndex].value);"
 
Last edited:
Hi LaiZer, Thanks for taking time out to try to help I think the gap is only in the copy above as the actual coding in dreamweaver is:


<h1>Please Select Country From </h1>
<h1>Drop Down Menu Below:</h1>

<form name="findacountry">
<select name="menu" class="contentarea" style="font-size:12px;color:#006699;font-family:verdana;background-color:#ffffff;">
<option value="http://eacnews.net/directory/nagr.php">Greece</option>
<option value="http://eacnews.net/directory/nairl.php"><a href="http://eacnews.net/directory/nairl.php">Ireland</a></option>
<option value="http://eacnews.net/directory/nai.php">Italy</option>
<option value="http://eacnews.net/directory/nanl.php">Netherlands</option>
<option value="http://eacnews.net/directory/narus.php">Russia</option>
<option value="http://eacnews.net/directory/nasrb.php">Serbia</option>
<option value="http://eacnews.net/directory/nas.php">Sweden</option>
<option value="http://eacnews.net/directory/nach.php">Switzerland</option>
<option value="http://eacnews.net/directory/nagb.php">United Kingdom</option>
</select>
<input style="font-size:12px;color:#ffffff;font-family:verdana;background-color:#006699;" type="button" onClick="window.open(document.findacountry.menu.options[document.findacountry.menu.selectedIndex].value);" value="Search">
</form>

Unfortunately I still cannot get it to go to the correct page on my computer. I will try adding in some of the other countries and see if they show up in IE.

Once again I appreciate you taking time out to try to help.
 
Install this program on your PC and it will show you in ALL IE formats from IE5 right up to IE1
Code:
You don't have permission to view the code content. Log in or register now.
 
Last edited by a moderator:
Back
Top