Results 1 to 5 of 5
Discuss coding problem at the Web Design within the DigitalWorldz - Satellite, Cable, Console Forums; 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. ...
  1. #1
    DW Senior Member
    Join Date
    Jun 2002
    Location
    Newcastle
    Posts
    488
    Downloads
    0
    Uploads
    0

    coding problem

    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:mail@ukapc.org.uk>info@eac.eu.com</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 by telsave; 4th November 2011 at 08:05. Reason: maintain coding

  2. #2
    DW Member
    Join Date
    Aug 2007
    Posts
    135
    Downloads
    2
    Uploads
    0

    Re: coding problem

    remove space in menu options

    onClick="window.open(document.findacountry.menu.op tions[document.findacountry.menu.selectedIndex].value);"
    Last edited by LraiZer; 4th November 2011 at 22:03.

  3. #3
    DW Senior Member
    Join Date
    Jun 2002
    Location
    Newcastle
    Posts
    488
    Downloads
    0
    Uploads
    0

    Re: coding problem

    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.op tions[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.

  4. #4
    Moderator
    Join Date
    Dec 2004
    Location
    mmm....padded walls....so soft...
    Posts
    6,916
    Blog Entries
    7
    Downloads
    0
    Uploads
    0

    Re: coding problem

    I've just tried it in IE9 and it works. What version of IE are you testing under?

  5. #5
    DW Newbie
    Join Date
    Mar 2012
    Posts
    9
    Downloads
    0
    Uploads
    0

    Re: coding problem

    Install this program on your PC and it will show you in ALL IE formats from IE5 right up to IE1
    Code:
    Only registered members can view code.


    Last edited by Spectre; 11th March 2012 at 02:17.

Similar Threads

  1. Error Coding
    By telsave in forum General Computer Topics
    Replies: 7
    Last Post: 25th September 2010, 11:32
  2. Region Free Coding
    By WIZARD22 in forum Burning CDR + DVDR
    Replies: 9
    Last Post: 21st January 2009, 22:43
  3. Problem on SOME channels in VMC
    By Confused Stu in forum DVB-C-S-T
    Replies: 13
    Last Post: 26th December 2008, 21:13
  4. HTML Problem
    By telsave in forum General Computer Topics
    Replies: 11
    Last Post: 2nd August 2008, 07:36
  5. Adsense coding
    By telsave in forum The Internet Uncovered
    Replies: 2
    Last Post: 10th July 2008, 19:31

Visitors found this page by searching for:

Nobody landed on this page from a search engine, yet!

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Copyright Digitalworldz 2013