[thelist] Select - forms confused

Robert Vreeland vreeland at studioframework.com
Mon Mar 10 13:41:06 CST 2003


----- Original Message -----
From: "Andrew" <andrew at humanbehaviour.co.uk>
To: <thelist at lists.evolt.org>
Sent: Monday, March 10, 2003 2:08 PM
Subject: RE: [thelist] Select - forms confused

Andrew,
Try this:
First make list A a list of hyperlinks with a get url format i.e. :
     <a
href="FindTownsCityCompanies.php?county=Buckinghamshire">Buckinghamshire</a>
Second, put the following (or something like it) in the section that is
tocontain your second list
<?php
if (isset($_GET['county']))/*  make sure there is something to get */
{
 require($_GET['county']); /* load the right file */
}

else /* use this as a default file to load */
{
 require("default.php");
}
?>
Your include file will be list B. In list B the href would read something
like
    <a
href="FindTownsCityCompanies.php?county=Buckinghamshire&option=alarmsystem">
Alarm Systems</a>
Lastly, in your main content section use a similar script to load the corect
content:
<?php
if (isset($_GET['county']) && isset($_GET['option']) )/*  make sure there is
something to get */
{
 require($_GET['option']); /* load the right file */
}

else /* use this as a default content file to load */
{
 require("defaultcontent.php");
}
?>
One other thing, I noticed that whatever script you are using to write out
the 'middle table' is including the escaping '\'  :
<TABLE cellpadding=5 cellspacing=3 width=\"100%\" border=0>
   <TD valign=\"top\" align=\"left\" class=\"city\">

You have selected  if you can not see your City or town you can either view
the full list of Cities and Towns or tell us and we will add to our records
</TD>
<TD valign=\"top\" align=\"left\" class=\"companydesc\">

<img src="http://www.punterspower.co.uk/images/shire/Suffolk.gif">
</TD>
</TR>
</TABLE>

Let me know if this helps.
Robert
vreeland at studioframework.com




More information about the thelist mailing list