Caching problem or soenthing else???
Moderator: General Moderators
Caching problem or soenthing else???
I have some php code that has been working OK.
Basically the code lists properties for a region in France.
For example,
http://www.1stforfrenchproperty.com/1st ... s=Limousin
will list the properties in Limousin region as you would expect.
If that works and it will sometimes, then follow it by
http://www.1stforfrenchproperty.com/1st ... s=Brittany
It should display the Brittany properties but will continues to display Limousin properties still. Why????
I have added right at the beginning of the page:
<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified:". gmdate ("D, d M Y H:i:s") ."GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
?>
to refresh the cache.
I tried asking the ISP to see if they have change settings on the Proxy server
I check checked my browser settings, and they are set to load the latest page.
Any ideas PLEASE!!!!
Thanks
Basically the code lists properties for a region in France.
For example,
http://www.1stforfrenchproperty.com/1st ... s=Limousin
will list the properties in Limousin region as you would expect.
If that works and it will sometimes, then follow it by
http://www.1stforfrenchproperty.com/1st ... s=Brittany
It should display the Brittany properties but will continues to display Limousin properties still. Why????
I have added right at the beginning of the page:
<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified:". gmdate ("D, d M Y H:i:s") ."GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
?>
to refresh the cache.
I tried asking the ISP to see if they have change settings on the Proxy server
I check checked my browser settings, and they are set to load the latest page.
Any ideas PLEASE!!!!
Thanks
Here is the code for this page....
<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified:". gmdate ("D, d M Y H:i:s") ."GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
?>
<html>
<head>
<link rel=stylesheet type="text/css" href="../global.css">
</head>
<body>
<?
echo "<p align='center'><font face='Arial'><b><font size='4' color='#008000'>All Properties in '$ss'</font></b>";
?>
<p align="center"><font face="Arial">Click on the Ref link for more details</font></p>
<p align="center"><font face="Arial">You can also sort by <i><b>clicking </b></i>on column titles</font></p>
<P>
<?
//$p = intval($thisOffset/$recordLimit) + 1;
//mysql_close($con);
$color1 = "#CCFFCC";
$color2 = "#BFD8BC";
$row_count = 0;
/*=========================================*/
/*==Variables used through out the script==*/
/*=========================================*/
$server = // Server Name
$userid =// Username
$pass =// Password
$database = // Database Name
$dbtable = // Table Name
$recordLimit= // Limit per page
/*==============================================*/
/*==Font control for the Next/Prev Naviagation==*/
/*==============================================*/
$prevStatus = "Show Previous $recordLimit Results";
$nextStatus = "Show Next $recordLimit Results";
$prevLink = "< Previous|";
$nextLink = "|Next >";
$fontfamily = "tahoma, helvetica";
$fontsize = "13px";
$fontcolor = "#000000";
$inactivecolor = "#666666"; // Color for when there is no link
$fontweight = "700";
$textdecoration = "none";
/*==========================================*/
/*==Window Status of individual page links==*/
/*==========================================*/
function pageStatus($i){
echo " Click to View Page $i";
}
/*========================================*/
/*==Make server and database connections==*/
/*========================================*/
$con = mysql_connect("$server","$userid","$pass")
or die ("Connection Error to Server");
$db = mysql_select_db("$database",$con)
or die("Connection Error to Database");
/*==================================================*/
/*==If thisOffset not set, set to zero==============*/
/*==================================================*/
if (!isset($thisOffset) || $thisOffset < 0) $thisOffset=0;
if ($action==search) $thisOffset = $thisOffset - 1;
/*==================================================*/
/*==This is to count the line index of the results==*/
/*=============if not set, set to zero==============*/
/*==================================================*/
if (!isset($lineIndex) || $lineIndex < 0) $lineIndex=0;
if ($action==search) $lineIndex = $lineIndex - 1;
/*========================================*/
/*==Set Base SQL Statement for the query==*/
/*========================================*/
if ($code==1){
$sql="SELECT * FROM homes WHERE mls='$ss' AND publish ='' order by id ASC";
$c=1;
}
else if ($code==2){
$sql="SELECT * FROM homes WHERE mls='$ss' AND publish ='' order by price ASC";
$c=2;
}
else if ($code==3){
$sql="SELECT * FROM homes WHERE mls='$ss' AND publish ='' order by department ASC";
$c=3;
}
else if ($code==4){
$sql="SELECT * FROM homes WHERE mls='$ss' AND publish ='' order by address ASC";
$c=4;
}
else if ($code==5){
$sql="SELECT * FROM homes WHERE mls='$ss' AND publish ='' order by beds ASC";
$c=5;
}
else if ($code==6){
$sql="SELECT * FROM homes WHERE mls='$ss' AND publish ='' order by baths ASC";
$c=6;
}
else if ($code==7){
$sql="SELECT * FROM homes WHERE mls='$ss' AND publish ='' order by sqfeet DESC";
$c=7;
}
else {
$sql="SELECT * FROM homes WHERE mls='$ss' AND publish ='' order by id DESC";
$c=0;
}
/*======================================*/
/*==Query for the total number of rows==*/
/*======================================*/
$getTotalRows = mysql_query($sql, $con);
$totalRowsNum = mysql_num_rows($getTotalRows);
/*==========================================*/
/*==Append the limit and offset to the sql==*/
/*==========================================*/
$sql.=" Limit $thisOffset,$recordLimit";
/*===================================================*/
/*==Query and fetch array with the limit and offset==*/
/*===================================================*/
$query = mysql_query($sql, $con);
/*================================================================*/
/*==Divide total rows by record limit to get the number of pages==*/
/*================================================================*/
$totalPages = intval($totalRowsNum/$recordLimit);
echo "<P align='center'><B>There are $totalRowsNum properties to view<B></P>";
echo "<div align='center'><center>";
echo "<table border='0' cellpadding='2' cellspacing='0' style='border-collapse: collapse' bordercolor='#111111' width='515'><tr>";
echo "<td class='DYNOheader' width='40' ><b><a class='SMLL' href='$PHP_SELF?code=1&ss=$ss'>Ref</a></b></td>";
echo "<td class='DYNOheader' width='95' ><b><a class='SMLL' href='$PHP_SELF?code=3&ss=$ss'>Department</a></b></td>";
echo "<td class='DYNOheader' width='195' ><b><a class='SMLL' href='$PHP_SELF?code=4&ss=$ss'>Description</a></font></b></td>";
echo "<td class='DYNOheader' width='30' ><b><a class='SMLL' href='$PHP_SELF?code=5&ss=$ss'>Beds</a></b></td>";
echo "<td class='DYNOheader' width='30' ><b><a class='SMLL' href='$PHP_SELF?code=6&ss=$ss'>Baths</a></b></td>";
echo "<td class='DYNOheader' width='40' ><b><a class='SMLL' href='$PHP_SELF?code=7&ss=$ss'>Sq(m²)</a></b></td>";
echo "<td class='DYNOheader' width='65' ><p align='right'><b><a class='SMLL' href='$PHP_SELF?code=2&ss=$ss'>Price, €</a></b></td></tr>";
while ($result=mysql_fetch_array($query)){
/*=================================*/
/*==Increment the line index by 1==*/
/*=================================*/
$lineIndex++;
/*============================================*/
/*====== Your results layout goes here =======*/
/*============================================*/
$row_color = ($row_count % 2) ? $color1 : $color2;
echo "<tr><td bgcolor='$row_color'><font color='#000000' face='Arial' size='2'>";
printf("<a target='_blank' href='../propviewEP.php?propnum=%s'>%s</a>\n", $result["id"] , $result["id"]);
echo "</td><td bgcolor='$row_color'><font color='#000000' face='Arial' size='2'>";
printf("%s <BR>\n", stripslashes($result["department"]));
echo "</td><td bgcolor='$row_color'><font color='#000000' face='Arial' size='2'>";
printf("%s <BR>\n", stripslashes($result["address"]));
echo "</td><td bgcolor='$row_color'><p align='right'><center><font color='#000000' face='Arial' size='2'>";
printf("%s <BR>\n", $result["beds"]);
echo "</td><td bgcolor='$row_color'><p align='right'><center><font color='#000000' face='Arial' size='2'>";
printf("%s <BR>\n", $result["baths"]);
echo "</td><td bgcolor='$row_color'><p align='right'><center><font color='#000000' face='Arial' size='2'>";
printf("%s <BR>\n", $result["sqfeet"]);
echo "</td><td bgcolor='$row_color'><p align='right'><font color='#000000' face='Arial' size='2'>";
printf("%s <BR>\n", $result["price"]);
echo "</td></font></tr>";
$row_count++;
}
echo "</table></center></div>";
echo "<center><hr color='#FF0000' width='80%'>";
/*===================================================================*/
/*==If the number of returned is less than the limit, show nothing===*/
/*===================================================================*/
if ($totalRowsNum <= $recordLimit) {
// less than recordLimit returned.
} else {
/*==============================================*/
/*==If the current offset is not equal to zero==*/
/*==Show the link. Else (if>0) show just text===*/
/*==============================================*/
if ($thisOffset!=0) { $prevOffset = intval($thisOffset-$recordLimit);
echo "<a style='font-family:$fontfamily; font-size:$fontsize; color:$fontcolor; font-weight:$fontweight;"
." text-decoration:$textdecoration;' onmouseover=\"window.status='$prevStatus'; return true\""
." onmouseout=\"window.status=''\" href='$PHP_SELF?thisOffset=$prevOffset&lineIndex=$prevOffset&ss=$ss&code=$c'>"
."$prevLink</a> ";
}
else { echo "<span style='font-family:$fontfamily; font-size:$fontsize; color:$inactivecolor;"
." font-weight:$fontweight; text-decoration:$textdecoration;'>$prevLink</span> ";
}
/*===========================================================*/
/*==If remainder is left from division increment totalPages==*/
/*===========================================================*/
if ($totalRowsNum%$recordLimit) $totalPages++;
/*===========================================================*/
/*==Using a for() loop, Display links for each page. 1 2 3==*/
/*===========================================================*/
for ($i=1;$i<=$totalPages;$i++) {
/*==================================================================*/
/*==If the page being viewed is the current page, disable the link==*/
/*==================================================================*/
if ((intval($thisOffset/$recordLimit)) == (intval($i-1))) {
echo " <span style='font-family:$fontfamily; font-size:$fontsize; color:$inactivecolor;"
." font-weight:$fontweight; text-decoration:$textdecoration;'>$i</span> ";
} else {
/*=======================================================*/
/*==If not current page, set nextOffset and display link==*/
/*=======================================================*/
$nextOffset= intval($recordLimit*($i-1));
echo " <a style='font-family:$fontfamily; font-size:$fontsize; color:$fontcolor;"
." font-weight:$fontweight; text-decoration:$textdecoration;' onmouseover=\"window.status='";
pageStatus($i);
echo "'; return true\" onmouseout=\"window.status=''\""
." href='$PHP_SELF?thisOffset=$nextOffset&lineIndex=$nextOffset&ss=$ss&code=$c'>$i</a> ";
}
}
/*==========================================================================*/
/*==If the page is not the last page, set the nextOffset and show the link==*/
/*==============If the page is the last page disable the link===============*/
/*==========================================================================*/
if (!(intval(((intval($thisOffset/$recordLimit))+1))==$totalPages) && $totalPages!=1) {
$nextOffset = intval($thisOffset+$recordLimit);
echo " <a style='font-family:$fontfamily; font-size:$fontsize; color:$fontcolor; font-weight:$fontweight;"
." text-decoration:$textdecoration;' onmouseover=\"window.status='$nextStatus'; return true\""
." onmouseout=\"window.status=''\" href='$PHP_SELF?thisOffset=$nextOffset&lineIndex=$nextOffset&ss=$ss&code=$c'>$nextLink</a><p>\n";
}
else echo " "
."<span style='font-family:$fontfamily; font-size:$fontsize; color:$inactivecolor;"
." font-weight:$fontweight; text-decoration:$textdecoration;'>$nextLink</span><p>";
}
$p = intval($thisOffset/$recordLimit) + 1;
If ($totalPages ==0) {
$totalPages=1;
}
else{
}
mysql_close($con);
echo "Viewing Page $p of $totalPages<BR>";
//End
?>
<P align='center'>
</table>
</body>
</html>
<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified:". gmdate ("D, d M Y H:i:s") ."GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
?>
<html>
<head>
<link rel=stylesheet type="text/css" href="../global.css">
</head>
<body>
<?
echo "<p align='center'><font face='Arial'><b><font size='4' color='#008000'>All Properties in '$ss'</font></b>";
?>
<p align="center"><font face="Arial">Click on the Ref link for more details</font></p>
<p align="center"><font face="Arial">You can also sort by <i><b>clicking </b></i>on column titles</font></p>
<P>
<?
//$p = intval($thisOffset/$recordLimit) + 1;
//mysql_close($con);
$color1 = "#CCFFCC";
$color2 = "#BFD8BC";
$row_count = 0;
/*=========================================*/
/*==Variables used through out the script==*/
/*=========================================*/
$server = // Server Name
$userid =// Username
$pass =// Password
$database = // Database Name
$dbtable = // Table Name
$recordLimit= // Limit per page
/*==============================================*/
/*==Font control for the Next/Prev Naviagation==*/
/*==============================================*/
$prevStatus = "Show Previous $recordLimit Results";
$nextStatus = "Show Next $recordLimit Results";
$prevLink = "< Previous|";
$nextLink = "|Next >";
$fontfamily = "tahoma, helvetica";
$fontsize = "13px";
$fontcolor = "#000000";
$inactivecolor = "#666666"; // Color for when there is no link
$fontweight = "700";
$textdecoration = "none";
/*==========================================*/
/*==Window Status of individual page links==*/
/*==========================================*/
function pageStatus($i){
echo " Click to View Page $i";
}
/*========================================*/
/*==Make server and database connections==*/
/*========================================*/
$con = mysql_connect("$server","$userid","$pass")
or die ("Connection Error to Server");
$db = mysql_select_db("$database",$con)
or die("Connection Error to Database");
/*==================================================*/
/*==If thisOffset not set, set to zero==============*/
/*==================================================*/
if (!isset($thisOffset) || $thisOffset < 0) $thisOffset=0;
if ($action==search) $thisOffset = $thisOffset - 1;
/*==================================================*/
/*==This is to count the line index of the results==*/
/*=============if not set, set to zero==============*/
/*==================================================*/
if (!isset($lineIndex) || $lineIndex < 0) $lineIndex=0;
if ($action==search) $lineIndex = $lineIndex - 1;
/*========================================*/
/*==Set Base SQL Statement for the query==*/
/*========================================*/
if ($code==1){
$sql="SELECT * FROM homes WHERE mls='$ss' AND publish ='' order by id ASC";
$c=1;
}
else if ($code==2){
$sql="SELECT * FROM homes WHERE mls='$ss' AND publish ='' order by price ASC";
$c=2;
}
else if ($code==3){
$sql="SELECT * FROM homes WHERE mls='$ss' AND publish ='' order by department ASC";
$c=3;
}
else if ($code==4){
$sql="SELECT * FROM homes WHERE mls='$ss' AND publish ='' order by address ASC";
$c=4;
}
else if ($code==5){
$sql="SELECT * FROM homes WHERE mls='$ss' AND publish ='' order by beds ASC";
$c=5;
}
else if ($code==6){
$sql="SELECT * FROM homes WHERE mls='$ss' AND publish ='' order by baths ASC";
$c=6;
}
else if ($code==7){
$sql="SELECT * FROM homes WHERE mls='$ss' AND publish ='' order by sqfeet DESC";
$c=7;
}
else {
$sql="SELECT * FROM homes WHERE mls='$ss' AND publish ='' order by id DESC";
$c=0;
}
/*======================================*/
/*==Query for the total number of rows==*/
/*======================================*/
$getTotalRows = mysql_query($sql, $con);
$totalRowsNum = mysql_num_rows($getTotalRows);
/*==========================================*/
/*==Append the limit and offset to the sql==*/
/*==========================================*/
$sql.=" Limit $thisOffset,$recordLimit";
/*===================================================*/
/*==Query and fetch array with the limit and offset==*/
/*===================================================*/
$query = mysql_query($sql, $con);
/*================================================================*/
/*==Divide total rows by record limit to get the number of pages==*/
/*================================================================*/
$totalPages = intval($totalRowsNum/$recordLimit);
echo "<P align='center'><B>There are $totalRowsNum properties to view<B></P>";
echo "<div align='center'><center>";
echo "<table border='0' cellpadding='2' cellspacing='0' style='border-collapse: collapse' bordercolor='#111111' width='515'><tr>";
echo "<td class='DYNOheader' width='40' ><b><a class='SMLL' href='$PHP_SELF?code=1&ss=$ss'>Ref</a></b></td>";
echo "<td class='DYNOheader' width='95' ><b><a class='SMLL' href='$PHP_SELF?code=3&ss=$ss'>Department</a></b></td>";
echo "<td class='DYNOheader' width='195' ><b><a class='SMLL' href='$PHP_SELF?code=4&ss=$ss'>Description</a></font></b></td>";
echo "<td class='DYNOheader' width='30' ><b><a class='SMLL' href='$PHP_SELF?code=5&ss=$ss'>Beds</a></b></td>";
echo "<td class='DYNOheader' width='30' ><b><a class='SMLL' href='$PHP_SELF?code=6&ss=$ss'>Baths</a></b></td>";
echo "<td class='DYNOheader' width='40' ><b><a class='SMLL' href='$PHP_SELF?code=7&ss=$ss'>Sq(m²)</a></b></td>";
echo "<td class='DYNOheader' width='65' ><p align='right'><b><a class='SMLL' href='$PHP_SELF?code=2&ss=$ss'>Price, €</a></b></td></tr>";
while ($result=mysql_fetch_array($query)){
/*=================================*/
/*==Increment the line index by 1==*/
/*=================================*/
$lineIndex++;
/*============================================*/
/*====== Your results layout goes here =======*/
/*============================================*/
$row_color = ($row_count % 2) ? $color1 : $color2;
echo "<tr><td bgcolor='$row_color'><font color='#000000' face='Arial' size='2'>";
printf("<a target='_blank' href='../propviewEP.php?propnum=%s'>%s</a>\n", $result["id"] , $result["id"]);
echo "</td><td bgcolor='$row_color'><font color='#000000' face='Arial' size='2'>";
printf("%s <BR>\n", stripslashes($result["department"]));
echo "</td><td bgcolor='$row_color'><font color='#000000' face='Arial' size='2'>";
printf("%s <BR>\n", stripslashes($result["address"]));
echo "</td><td bgcolor='$row_color'><p align='right'><center><font color='#000000' face='Arial' size='2'>";
printf("%s <BR>\n", $result["beds"]);
echo "</td><td bgcolor='$row_color'><p align='right'><center><font color='#000000' face='Arial' size='2'>";
printf("%s <BR>\n", $result["baths"]);
echo "</td><td bgcolor='$row_color'><p align='right'><center><font color='#000000' face='Arial' size='2'>";
printf("%s <BR>\n", $result["sqfeet"]);
echo "</td><td bgcolor='$row_color'><p align='right'><font color='#000000' face='Arial' size='2'>";
printf("%s <BR>\n", $result["price"]);
echo "</td></font></tr>";
$row_count++;
}
echo "</table></center></div>";
echo "<center><hr color='#FF0000' width='80%'>";
/*===================================================================*/
/*==If the number of returned is less than the limit, show nothing===*/
/*===================================================================*/
if ($totalRowsNum <= $recordLimit) {
// less than recordLimit returned.
} else {
/*==============================================*/
/*==If the current offset is not equal to zero==*/
/*==Show the link. Else (if>0) show just text===*/
/*==============================================*/
if ($thisOffset!=0) { $prevOffset = intval($thisOffset-$recordLimit);
echo "<a style='font-family:$fontfamily; font-size:$fontsize; color:$fontcolor; font-weight:$fontweight;"
." text-decoration:$textdecoration;' onmouseover=\"window.status='$prevStatus'; return true\""
." onmouseout=\"window.status=''\" href='$PHP_SELF?thisOffset=$prevOffset&lineIndex=$prevOffset&ss=$ss&code=$c'>"
."$prevLink</a> ";
}
else { echo "<span style='font-family:$fontfamily; font-size:$fontsize; color:$inactivecolor;"
." font-weight:$fontweight; text-decoration:$textdecoration;'>$prevLink</span> ";
}
/*===========================================================*/
/*==If remainder is left from division increment totalPages==*/
/*===========================================================*/
if ($totalRowsNum%$recordLimit) $totalPages++;
/*===========================================================*/
/*==Using a for() loop, Display links for each page. 1 2 3==*/
/*===========================================================*/
for ($i=1;$i<=$totalPages;$i++) {
/*==================================================================*/
/*==If the page being viewed is the current page, disable the link==*/
/*==================================================================*/
if ((intval($thisOffset/$recordLimit)) == (intval($i-1))) {
echo " <span style='font-family:$fontfamily; font-size:$fontsize; color:$inactivecolor;"
." font-weight:$fontweight; text-decoration:$textdecoration;'>$i</span> ";
} else {
/*=======================================================*/
/*==If not current page, set nextOffset and display link==*/
/*=======================================================*/
$nextOffset= intval($recordLimit*($i-1));
echo " <a style='font-family:$fontfamily; font-size:$fontsize; color:$fontcolor;"
." font-weight:$fontweight; text-decoration:$textdecoration;' onmouseover=\"window.status='";
pageStatus($i);
echo "'; return true\" onmouseout=\"window.status=''\""
." href='$PHP_SELF?thisOffset=$nextOffset&lineIndex=$nextOffset&ss=$ss&code=$c'>$i</a> ";
}
}
/*==========================================================================*/
/*==If the page is not the last page, set the nextOffset and show the link==*/
/*==============If the page is the last page disable the link===============*/
/*==========================================================================*/
if (!(intval(((intval($thisOffset/$recordLimit))+1))==$totalPages) && $totalPages!=1) {
$nextOffset = intval($thisOffset+$recordLimit);
echo " <a style='font-family:$fontfamily; font-size:$fontsize; color:$fontcolor; font-weight:$fontweight;"
." text-decoration:$textdecoration;' onmouseover=\"window.status='$nextStatus'; return true\""
." onmouseout=\"window.status=''\" href='$PHP_SELF?thisOffset=$nextOffset&lineIndex=$nextOffset&ss=$ss&code=$c'>$nextLink</a><p>\n";
}
else echo " "
."<span style='font-family:$fontfamily; font-size:$fontsize; color:$inactivecolor;"
." font-weight:$fontweight; text-decoration:$textdecoration;'>$nextLink</span><p>";
}
$p = intval($thisOffset/$recordLimit) + 1;
If ($totalPages ==0) {
$totalPages=1;
}
else{
}
mysql_close($con);
echo "Viewing Page $p of $totalPages<BR>";
//End
?>
<P align='center'>
</table>
</body>
</html>
No changes, just making it easier to read:
Code: Select all
<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified:". gmdate ("D, d M Y H:i:s") ."GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
?>
<html>
<head>
<link rel=stylesheet type="text/css" href="../global.css">
</head>
<body>
<?
echo "<p align='center'><font face='Arial'><b><font size='4' color='#008000'>All Properties in '$ss'</font></b>";
?>
<p align="center"><font face="Arial">Click on the Ref link for more details</font></p>
<p align="center"><font face="Arial">You can also sort by <i><b>clicking </b></i>on column titles</font></p>
<P>
<?
//$p = intval($thisOffset/$recordLimit) + 1;
//mysql_close($con);
$color1 = "#CCFFCC";
$color2 = "#BFD8BC";
$row_count = 0;
/*=========================================*/
/*==Variables used through out the script==*/
/*=========================================*/
$server = // Server Name
$userid =// Username
$pass =// Password
$database = // Database Name
$dbtable = // Table Name
$recordLimit= // Limit per page
/*==============================================*/
/*==Font control for the Next/Prev Naviagation==*/
/*==============================================*/
$prevStatus = "Show Previous $recordLimit Results";
$nextStatus = "Show Next $recordLimit Results";
$prevLink = "< Previous|";
$nextLink = "|Next >";
$fontfamily = "tahoma, helvetica";
$fontsize = "13px";
$fontcolor = "#000000";
$inactivecolor = "#666666"; // Color for when there is no link
$fontweight = "700";
$textdecoration = "none";
/*==========================================*/
/*==Window Status of individual page links==*/
/*==========================================*/
function pageStatus($i){
echo " Click to View Page $i";
}
/*========================================*/
/*==Make server and database connections==*/
/*========================================*/
$con = mysql_connect("$server","$userid","$pass")
or die ("Connection Error to Server");
$db = mysql_select_db("$database",$con)
or die("Connection Error to Database");
/*==================================================*/
/*==If thisOffset not set, set to zero==============*/
/*==================================================*/
if (!isset($thisOffset) || $thisOffset < 0) $thisOffset=0;
if ($action==search) $thisOffset = $thisOffset - 1;
/*==================================================*/
/*==This is to count the line index of the results==*/
/*=============if not set, set to zero==============*/
/*==================================================*/
if (!isset($lineIndex) || $lineIndex < 0) $lineIndex=0;
if ($action==search) $lineIndex = $lineIndex - 1;
/*========================================*/
/*==Set Base SQL Statement for the query==*/
/*========================================*/
if ($code==1){
$sql="SELECT * FROM homes WHERE mls='$ss' AND publish ='' order by id ASC";
$c=1;
}
else if ($code==2){
$sql="SELECT * FROM homes WHERE mls='$ss' AND publish ='' order by price ASC";
$c=2;
}
else if ($code==3){
$sql="SELECT * FROM homes WHERE mls='$ss' AND publish ='' order by department ASC";
$c=3;
}
else if ($code==4){
$sql="SELECT * FROM homes WHERE mls='$ss' AND publish ='' order by address ASC";
$c=4;
}
else if ($code==5){
$sql="SELECT * FROM homes WHERE mls='$ss' AND publish ='' order by beds ASC";
$c=5;
}
else if ($code==6){
$sql="SELECT * FROM homes WHERE mls='$ss' AND publish ='' order by baths ASC";
$c=6;
}
else if ($code==7){
$sql="SELECT * FROM homes WHERE mls='$ss' AND publish ='' order by sqfeet DESC";
$c=7;
}
else {
$sql="SELECT * FROM homes WHERE mls='$ss' AND publish ='' order by id DESC";
$c=0;
}
/*======================================*/
/*==Query for the total number of rows==*/
/*======================================*/
$getTotalRows = mysql_query($sql, $con);
$totalRowsNum = mysql_num_rows($getTotalRows);
/*==========================================*/
/*==Append the limit and offset to the sql==*/
/*==========================================*/
$sql.=" Limit $thisOffset,$recordLimit";
/*===================================================*/
/*==Query and fetch array with the limit and offset==*/
/*===================================================*/
$query = mysql_query($sql, $con);
/*================================================================*/
/*==Divide total rows by record limit to get the number of pages==*/
/*================================================================*/
$totalPages = intval($totalRowsNum/$recordLimit);
echo "<P align='center'><B>There are $totalRowsNum properties to view<B></P>";
echo "<div align='center'><center>";
echo "<table border='0' cellpadding='2' cellspacing='0' style='border-collapse: collapse' bordercolor='#111111' width='515'><tr>";
echo "<td class='DYNOheader' width='40' ><b><a class='SMLL' href='$PHP_SELF?code=1&ss=$ss'>Ref</a></b></td>";
echo "<td class='DYNOheader' width='95' ><b><a class='SMLL' href='$PHP_SELF?code=3&ss=$ss'>Department</a></b></td>";
echo "<td class='DYNOheader' width='195' ><b><a class='SMLL' href='$PHP_SELF?code=4&ss=$ss'>Description</a></font></b></td>";
echo "<td class='DYNOheader' width='30' ><b><a class='SMLL' href='$PHP_SELF?code=5&ss=$ss'>Beds</a></b></td>";
echo "<td class='DYNOheader' width='30' ><b><a class='SMLL' href='$PHP_SELF?code=6&ss=$ss'>Baths</a></b></td>";
echo "<td class='DYNOheader' width='40' ><b><a class='SMLL' href='$PHP_SELF?code=7&ss=$ss'>Sq(m²)</a></b></td>";
echo "<td class='DYNOheader' width='65' ><p align='right'><b><a class='SMLL' href='$PHP_SELF?code=2&ss=$ss'>Price, €</a></b></td></tr>";
while ($result=mysql_fetch_array($query)){
/*=================================*/
/*==Increment the line index by 1==*/
/*=================================*/
$lineIndex++;
/*============================================*/
/*====== Your results layout goes here =======*/
/*============================================*/
$row_color = ($row_count % 2) ? $color1 : $color2;
echo "<tr><td bgcolor='$row_color'><font color='#000000' face='Arial' size='2'>";
printf("<a target='_blank' href='../propviewEP.php?propnum=%s'>%s</a>\n", $result["id"] , $result["id"]);
echo "</td><td bgcolor='$row_color'><font color='#000000' face='Arial' size='2'>";
printf("%s <BR>\n", stripslashes($result["department"]));
echo "</td><td bgcolor='$row_color'><font color='#000000' face='Arial' size='2'>";
printf("%s <BR>\n", stripslashes($result["address"]));
echo "</td><td bgcolor='$row_color'><p align='right'><center><font color='#000000' face='Arial' size='2'>";
printf("%s <BR>\n", $result["beds"]);
echo "</td><td bgcolor='$row_color'><p align='right'><center><font color='#000000' face='Arial' size='2'>";
printf("%s <BR>\n", $result["baths"]);
echo "</td><td bgcolor='$row_color'><p align='right'><center><font color='#000000' face='Arial' size='2'>";
printf("%s <BR>\n", $result["sqfeet"]);
echo "</td><td bgcolor='$row_color'><p align='right'><font color='#000000' face='Arial' size='2'>";
printf("%s <BR>\n", $result["price"]);
echo "</td></font></tr>";
$row_count++;
}
echo "</table></center></div>";
echo "<center><hr color='#FF0000' width='80%'>";
/*===================================================================*/
/*==If the number of returned is less than the limit, show nothing===*/
/*===================================================================*/
if ($totalRowsNum <= $recordLimit) {
// less than recordLimit returned.
} else {
/*==============================================*/
/*==If the current offset is not equal to zero==*/
/*==Show the link. Else (if>0) show just text===*/
/*==============================================*/
if ($thisOffset!=0) { $prevOffset = intval($thisOffset-$recordLimit);
echo "<a style='font-family:$fontfamily; font-size:$fontsize; color:$fontcolor; font-weight:$fontweight;"
." text-decoration:$textdecoration;' onmouseover="window.status='$prevStatus'; return true""
." onmouseout="window.status=''" href='$PHP_SELF?thisOffset=$prevOffset&lineIndex=$prevOffset&ss=$ss&code=$c'>"
."$prevLink</a> ";
}
else { echo "<span style='font-family:$fontfamily; font-size:$fontsize; color:$inactivecolor;"
." font-weight:$fontweight; text-decoration:$textdecoration;'>$prevLink</span> ";
}
/*===========================================================*/
/*==If remainder is left from division increment totalPages==*/
/*===========================================================*/
if ($totalRowsNum%$recordLimit) $totalPages++;
/*===========================================================*/
/*==Using a for() loop, Display links for each page. 1 2 3==*/
/*===========================================================*/
for ($i=1;$i<=$totalPages;$i++) {
/*==================================================================*/
/*==If the page being viewed is the current page, disable the link==*/
/*==================================================================*/
if ((intval($thisOffset/$recordLimit)) == (intval($i-1))) {
echo " <span style='font-family:$fontfamily; font-size:$fontsize; color:$inactivecolor;"
." font-weight:$fontweight; text-decoration:$textdecoration;'>$i</span> ";
} else {
/*=======================================================*/
/*==If not current page, set nextOffset and display link==*/
/*=======================================================*/
$nextOffset= intval($recordLimit*($i-1));
echo " <a style='font-family:$fontfamily; font-size:$fontsize; color:$fontcolor;"
." font-weight:$fontweight; text-decoration:$textdecoration;' onmouseover="window.status='";
pageStatus($i);
echo "'; return true" onmouseout="window.status=''""
." href='$PHP_SELF?thisOffset=$nextOffset&lineIndex=$nextOffset&ss=$ss&code=$c'>$i</a> ";
}
}
/*==========================================================================*/
/*==If the page is not the last page, set the nextOffset and show the link==*/
/*==============If the page is the last page disable the link===============*/
/*==========================================================================*/
if (!(intval(((intval($thisOffset/$recordLimit))+1))==$totalPages) && $totalPages!=1) {
$nextOffset = intval($thisOffset+$recordLimit);
echo " <a style='font-family:$fontfamily; font-size:$fontsize; color:$fontcolor; font-weight:$fontweight;"
." text-decoration:$textdecoration;' onmouseover="window.status='$nextStatus'; return true""
." onmouseout="window.status=''" href='$PHP_SELF?thisOffset=$nextOffset&lineIndex=$nextOffset&ss=$ss&code=$c'>$nextLink</a><p>\n";
}
else echo " "
."<span style='font-family:$fontfamily; font-size:$fontsize; color:$inactivecolor;"
." font-weight:$fontweight; text-decoration:$textdecoration;'>$nextLink</span><p>";
}
$p = intval($thisOffset/$recordLimit) + 1;
If ($totalPages ==0) {
$totalPages=1;
}
else{
}
mysql_close($con);
echo "Viewing Page $p of $totalPages<BR>";
//End
?>
<P align='center'>
</table>
</body>
</html>- Derfel Cadarn
- Forum Contributor
- Posts: 193
- Joined: Thu Jul 17, 2003 12:02 pm
- Location: Berlin, Germany
Re: Caching problem or soenthing else???
I just tried it and it seems to work fine! Have you solved the problem?webvivre wrote: For example,
http://www.1stforfrenchproperty.com/1st ... s=Limousin
will list the properties in Limousin region as you would expect.
If that works and it will sometimes, then follow it by
http://www.1stforfrenchproperty.com/1st ... s=Brittany
It should display the Brittany properties but will continues to display Limousin properties still. Why????
- Derfel Cadarn
- Forum Contributor
- Posts: 193
- Joined: Thu Jul 17, 2003 12:02 pm
- Location: Berlin, Germany
I just noticed that when I use the links you've mentioned and I change the province manually, it works fine.
But when I goto the page http://www.1st-for-french-property.co.uk/french-property-for-sale-EP.htm and use the pull-down-menu to change the departement (sorry, I shouldn't say "pronince"
), the I get the same result you've mentioned:
The page is updated, but the results stay the same!
There must be something wrong in the script dept-EP.php, I guess.
Is that the one you've shown us?
But when I goto the page http://www.1st-for-french-property.co.uk/french-property-for-sale-EP.htm and use the pull-down-menu to change the departement (sorry, I shouldn't say "pronince"
The page is updated, but the results stay the same!
There must be something wrong in the script dept-EP.php, I guess.
Is that the one you've shown us?
At least somebody is seeing the issue....
Here is dept-ep.php script....
Any help please....
<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified:". gmdate ("D, d M Y H:i:s") ."GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
?>
<HTML><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<TITLE>1st for French Property: Property by department for sale</TITLE>
<meta name="Description" content="1st for French Property: Sales Property Listings - huge choice: Villas, Farmhouses, Gites, Longere, Mas, Mills, Barns">
<meta name="Keywords" content="property by department,1st for french property,department Properties">
<link rel=stylesheet type=text/css href=reg.css>
</head>
<body topmargin="0" leftmargin="0" link="#FFFF00" vlink="#FFFFFF" alink="#00FFFF">
<table border=0 cellpadding=0 cellspacing=0 style="border-collapse: collapse" bordercolor=#111111 width=785 valign="top" ><tr><td colspan=3 height=102 width=799><div align=left>
<table border=0 cellpadding=0 cellspacing=0 style="border-collapse: collapse; border-left-width:1; border-right-style:solid; border-right-width:1; border-top-width:1; border-bottom-width:1" bordercolor=#111111 width=799 height=120 alt="french properties for sale,gites,holiday rentals"><tr>
<td height=20 bgcolor="#008000" align="center" valign='middle'><b>
<?
echo "<h2>$ss property - Villas, Farmhouses, Gites, Longere, Mas, Mills, Barns</font></h2>"
?>
</td>
</tr><tr>
<td height=102 background="../../images/1stlonga.jpg" alt="French property"> </td></tr><tr>
<td height=20 bgcolor=#008000><table border=0 cellpadding=4 cellspacing=0 style="border-collapse: collapse" bordercolor=#111111 width=100%><tr><td width=85% height=20><b><font color=#FFFF00 face=Arial size=2><a style=font-size:10pt href="http://www.1st-for-french-property.co.uk/gif.htm">About Us</a> | <a style=font-size:10pt href="http://www.1st-for-french-property.co.u ... rtising</a> | <a style=font-size:10pt href=http://www.1st-for-french-property.co.u ... htm>France Directory</a> | <a style=font-size:10pt href="http://www.1st-for-french-property.co.u ... sources</a> | <a style=font-size:10pt href="http://www.1st-for-french-property.co.u ... >Offers</a> | </font><font face=Arial size=2><a style=font-size:10pt href="http://www.1st-for-french-property.co.uk/list.htm">Site Map</a> </font><font color=#FFFF00 face=Arial size=2>| </font><font face=Arial size=2>
<a style="font-size:10pt" href="http://www.1st-for-french-property.co.u ... tm">French Property for sale</a></font></b></td><td width=15% height=20 align=right><a href="http://www.1st-for-french-property.co.uk/gif.htm">
<img alt="[Contact Us]" src=../../images/contact_us.gif border=0 width="31" height="18"></a><a href="http://www.1st-for-french-property.co.u ... .htm"><img alt="[Search for French Properties]" src=../../images/site_map.gif border=0 width="31" height="18"></a><a href=http://1st-for-french-property.co.uk/default.htm><img alt="[1st for French Property Home]" src=../../images/home.gif border=0 width="31" height="18"></a></td></tr></table></td></tr></table></div></td></tr>
<tr>
<td height="100%" bgcolor="#D2F2D0" width="198" valign="top" style="border-left-width: 1; border-right-style: solid; border-right-width: 1; border-top-width: 1; border-bottom-width: 1">
<center>
<table border="0" cellpadding="2" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
<tr>
<td width="100%" bgcolor="#FFFF00"><p align="center"><b><font face="Arial" color="#FF0000">
FRENCH PROPERTY SEARCH</font></b></td>
</tr>
<tr>
<td width="100%" align="left"><FORM METHOD="post" ACTION="http://www.1stforfrenchproperty.com/1st ... viewEP.php" target="content">
<input type="text" name="find2" size="16"> <INPUT CLASS="forms" TYPE="submit" VALUE="Search" >
<?
echo "<h1>$ss</h1><p>We have an ever increasing number of properties in <b>$ss</b>. Please use the Quick Links below to find your dream home in <b>$ss</b>....</p>"
?>
</td></FORM>
</tr>
</table>
<table border="0" cellpadding="5" style="border-collapse: collapse" bordercolor="#111111" width="198">
<tr>
<td height="35">
<div align="center">
<BR><form>
<select name="theSelect" size=1 onChange="if (this.selectedIndex >0) window.location=this.options[this.selectedIndex].value">
<option value="">or pick other department...
<option value="http://www.1stforfrenchproperty.com/1st ... thing">Ain
<option value="http://www.1stforfrenchproperty.com/1st ... sne">Aisne
<option value="http://www.1stforfrenchproperty.com/1st ... er">Allier
<option value="http://www.1stforfrenchproperty.com/1st ... e-Hte-Prov.
<option value="http://www.1stforfrenchproperty.com/1st ... -Maritimes
<option value="http://www.1stforfrenchproperty.com/1st ... e">Ardeche
<option value="http://www.1stforfrenchproperty.com/1st ... ">Ardennes
<option value="http://www.1stforfrenchproperty.com/1st ... ge">Ariege
<option value="http://www.1stforfrenchproperty.com/1st ... Aube">Aube
<option value="http://www.1stforfrenchproperty.com/1st ... Aude">Aude
<option value="http://www.1stforfrenchproperty.com/1st ... n">Aveyron
<option value="http://www.1stforfrenchproperty.com/1st ... ">Bas-Rhin
<option value="http://www.1stforfrenchproperty.com/1st ... s-du-Rhone
<option value="http://www.1stforfrenchproperty.com/1st ... ">Calvados
<option value="http://www.1stforfrenchproperty.com/1st ... al">Cantal
<option value="http://www.1stforfrenchproperty.com/1st ... ">Charente
<option value="http://www.1stforfrenchproperty.com/1st ... e-Maritime
<option value="http://www.1stforfrenchproperty.com/1st ... Cher">Cher
<option value="http://www.1stforfrenchproperty.com/1st ... e">Correze
<option value="http://www.1stforfrenchproperty.com/1st ... >Cote-d'Or
<option value="http://www.1stforfrenchproperty.com/1st ... es-d'Armor
<option value="http://www.1stforfrenchproperty.com/1st ... se">Creuse
<option value="http://www.1stforfrenchproperty.com/1st ... eux-Sevres
<option value="http://www.1stforfrenchproperty.com/1st ... ">Dordogne
<option value="http://www.1stforfrenchproperty.com/1st ... ubs">Doubs
<option value="http://www.1stforfrenchproperty.com/1st ... ome">Drome
<option value="http://www.1stforfrenchproperty.com/1st ... e">Essonne
<option value="http://www.1stforfrenchproperty.com/1st ... Eure">Eure
<option value="http://www.1stforfrenchproperty.com/1st ... re-et-Loir
<option value="http://www.1stforfrenchproperty.com/1st ... >Finistere
<option value="http://www.1stforfrenchproperty.com/1st ... Gard">Gard
<option value="http://www.1stforfrenchproperty.com/1st ... Gers">Gers
<option value="http://www.1stforfrenchproperty.com/1st ... e">Gironde
<option value="http://www.1stforfrenchproperty.com/1st ... utes-Alpes
<option value="http://www.1stforfrenchproperty.com/1st ... te-Garonne
<option value="http://www.1stforfrenchproperty.com/1st ... aute-Loire
<option value="http://www.1stforfrenchproperty.com/1st ... s-Pyrenees
<option value="http://www.1stforfrenchproperty.com/1st ... ute-Savoie
<option value="http://www.1stforfrenchproperty.com/1st ... ute-Vienne
<option value="http://www.1stforfrenchproperty.com/1st ... >Haut-Rhin
<option value="http://www.1stforfrenchproperty.com/1st ... s-de-Seine
<option value="http://www.1stforfrenchproperty.com/1st ... t">Herault
<option value="http://www.1stforfrenchproperty.com/1st ... et-Vilaine
<option value="http://www.1stforfrenchproperty.com/1st ... dre">Indre
<option value="http://www.1stforfrenchproperty.com/1st ... e-et-Loire
<option value="http://www.1stforfrenchproperty.com/1st ... ere">Isere
<option value="http://www.1stforfrenchproperty.com/1st ... es">Landes
<option value="http://www.1stforfrenchproperty.com/1st ... ir-et-Cher
<option value="http://www.1stforfrenchproperty.com/1st ... ire">Loire
<option value="http://www.1stforfrenchproperty.com/1st ... Atlantique
<option value="http://www.1stforfrenchproperty.com/1st ... et">Loiret
<option value="http://www.1stforfrenchproperty.com/1st ... s=Lot">Lot
<option value="http://www.1stforfrenchproperty.com/1st ... et-Garonne
<option value="http://www.1stforfrenchproperty.com/1st ... re">Lozere
<option value="http://www.1stforfrenchproperty.com/1st ... e-et-Loire
<option value="http://www.1stforfrenchproperty.com/1st ... he">Manche
<option value="http://www.1stforfrenchproperty.com/1st ... rne">Marne
<option value="http://www.1stforfrenchproperty.com/1st ... aute-Marne
<option value="http://www.1stforfrenchproperty.com/1st ... e">Mayenne
<option value="http://www.1stforfrenchproperty.com/1st ... et-Moselle
<option value="http://www.1stforfrenchproperty.com/1st ... use">Meuse
<option value="http://www.1stforfrenchproperty.com/1st ... ">Morbihan
<option value="http://www.1stforfrenchproperty.com/1st ... e">Moselle
<option value="http://www.1stforfrenchproperty.com/1st ... re">Nievre
<option value="http://www.1stforfrenchproperty.com/1st ... Nord">Nord
<option value="http://www.1stforfrenchproperty.com/1st ... Oise">Oise
<option value="http://www.1stforfrenchproperty.com/1st ... Orne">Orne
<option value="http://www.1stforfrenchproperty.com/1st ... ris">Paris
<option value="http://www.1stforfrenchproperty.com/1st ... -de-Calais
<option value="http://www.1stforfrenchproperty.com/1st ... uy-de-Dome
<option value="http://www.1stforfrenchproperty.com/1st ... tlantiques
<option value="http://www.1stforfrenchproperty.com/1st ... Orientales
<option value="http://www.1stforfrenchproperty.com/1st ... one">Rhone
<option value="http://www.1stforfrenchproperty.com/1st ... e-et-Loire
<option value="http://www.1stforfrenchproperty.com/1st ... he">Sarthe
<option value="http://www.1stforfrenchproperty.com/1st ... ie">Savoie
<option value="http://www.1stforfrenchproperty.com/1st ... e-et-Marne
<option value="http://www.1stforfrenchproperty.com/1st ... e-Maritime
<option value="http://www.1stforfrenchproperty.com/1st ... aint-Denis
<option value="http://www.1stforfrenchproperty.com/1st ... mme">Somme
<option value="http://www.1stforfrenchproperty.com/1st ... Tarn">Tarn
<option value="http://www.1stforfrenchproperty.com/1st ... et-Garonne
<option value="http://www.1stforfrenchproperty.com/1st ... Territoire de Belfort">Territoire de Belfort
<option value="http://www.1stforfrenchproperty.com/1st ... l-de-Marne
<option value="http://www.1stforfrenchproperty.com/1st ... Val-d'Oise
<option value="http://www.1stforfrenchproperty.com/1st ... s=Var">Var
<option value="http://www.1stforfrenchproperty.com/1st ... ">Vaucluse
<option value="http://www.1stforfrenchproperty.com/1st ... ee">Vendee
<option value="http://www.1stforfrenchproperty.com/1st ... ne">Vienne
<option value="http://www.1stforfrenchproperty.com/1st ... es">Vosges
<option value="http://www.1stforfrenchproperty.com/1st ... nne">Yonne
<option value="http://www.1stforfrenchproperty.com/1st ... ">Yvelines
</select>
</form>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
<tr>
<td width="100%" bgcolor="#FFFF00" height="15">
<p align="center"><b><font face="Arial" color="#008000">DEPARTMENT QUICK LINKS</font></b></td>
</tr>
<tr>
<td width="100%">
<div align="center">
<center>
<table border="0" cellpadding="4" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
<tr>
<td height="20"><b><font face="Arial">
<a class="menu1" target="_top" href="http://www.1st-for-french-property.co.u ... .htm">Main Property page (map)</a></font></b></td>
</tr>
<tr>
<td height="20"><b><font face="Arial">
<?
echo "<a class='menu1' target='content' href='http://www.1stforfrenchproperty.com/1st ... =$ss'>List All Properties</a></font></b>"
?>
</td>
</tr>
<tr>
<td height="20">
<?
echo "<a class='menu1' target='content' href='http://www.1stforfrenchproperty.com/1st ... php?ss=$ss'>"
?>
<b><font face="Arial">What's new</font></b></td>
</tr>
<tr>
<td height="20"><b><font face="Arial">
<?
echo "<a class='menu1' target='content' href='http://www.1stforfrenchproperty.com/1st ... s&tt=Gites Complex'>"
?>
Gites and B&Bs</a></font></b></td>
</tr>
<tr>
<td height="20">
<b><font face="Arial">
<?
echo "<a class='menu1' target='content' href='http://www.1stforfrenchproperty.com/1st ... php?ss=$ss'>"
?>
Luxury Properties</a></font></b></td>
</tr>
<tr>
<td height="20">
<b><font face="Arial">
<?
echo "<a class='menu1' target='content' href='http://www.1stforfrenchproperty.com/1st ... =apartment'>"
?>
Apartments</a></font></b></td>
</tr>
<tr>
<td height="20">
<b><font face="Arial">
<?
echo "<a class='menu1' target='content' href='http://www.1stforfrenchproperty.com/1st ... php?ss=$ss'>"
?>
up to 50,000 Euros</a></font></b></td>
</tr>
<tr>
<td height="20">
<p align="left"><b><font face="Arial">
<?
echo "<a class='menu1' target='content' href='http://www.1stforfrenchproperty.com/1st ... php?ss=$ss'>"
?>
50000 to 100000 €</a></font></b></td>
</tr>
<tr>
<td height="20">
<b><font face="Arial">
<?
echo "<a class='menu1' target='content' href='http://www.1stforfrenchproperty.com/1st ... php?ss=$ss'>"
?>
100,000 to 250,000 €</a></font></b></td>
</tr>
<tr>
<td height="20">
<b><font face="Arial">
<?
echo "<a class='menu1' target='content' href='http://www.1stforfrenchproperty.com/1st ... php?ss=$ss'>"
?>
250,000 to 500,000 €</a></font></b></td>
</tr>
</table>
</center>
</div>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="190">
<tr>
<td width="100%" bgcolor="#FFFF00">
<p align="center"><b><font face="Arial" color="#008000">CONTACT US</font></b></td>
</tr>
<tr>
<td width="100%">
<p align="center"><font face="Arial">Email us from here - <b>
<a target="content" class="menu1" href="http://www.1stforfrenchproperty.com/1st ... /font></td>
</tr>
</table>
</center>
<p> </p>
<p align="center"><script language="JavaScript">
<!--
google_ad_client = 'pub-1020393809782867';
google_ad_width = 120;
google_ad_height = 600;
google_ad_format = '120x600_as';
// -->
</script>
<script language="JavaScript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></td>
<td width="599" valign="top" style="border-left-width: 1; border-right-style: solid; border-right-width: 1; border-top-width: 1; border-bottom-width: 1">
<?
echo " <h1>$ss Property for Sale</h1>"
?>
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
<tr>
<td width="32%" align="center" bgcolor="#008000"><b>
<font face="Arial" color="#FFFF00">
<?
echo "<a target='content' href='http://www.1stforfrenchproperty.com/1st ... php?ss=$ss'>"
?>
SHOW ALL PROPERTIES</a></font></b></td>
<td width="28%" align="center" bgcolor="#008000"><b>
<font face="Arial" color="#FFFF00">
<a target="content" href="http://www.1stforfrenchproperty.com/1st ... ">ADVANCED SEARCH</a></font></b></td>
<td width="20%" align="center" bgcolor="#008000"><b>
<font face="Arial" color="#FFFF00">
<a target="content" href="http://www.1stforfrenchproperty.com/1st ... EP.php">MY HOMES</a></font></b></td>
<td width="20%" align="center" bgcolor="#008000"><b>
<font face="Arial" color="#FFFF00">
<a target="content" href="http://www.1stforfrenchproperty.com/1st ... EP.php">MY NOTIFY</a></font></b></td>
</tr>
</table>
</center>
<div align="left">
<table border="0" cellpadding="4" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="585" height="757">
<tr>
<td width="610" height="749" style="border-left-width: 1; border-right-style: solid; border-right-width: 1; border-top-width: 1; border-bottom-width: 1; border-bottom-style:solid">
<p align="center">
<?
echo "<iframe frameborder=0 name='content' src='http://www.1stforfrenchproperty.com/1st ... php?ss=$ss' width='590' height='1800'>French properties for sale in all $ss</iframe>"
?>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</div>
<div align="left">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="800">
<tr>
<td width="700" align="center">
<font color='#000000' face='Arial' size='2'>
<table CELLSPACING="0" BORDER="1" CELLPADDING="2" WIDTH="500" style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td bgcolor="#F8CCD8"><font FACE="Arial"><b>
<p ALIGN="CENTER">DISCLAIMER</b></font></td>
</tr>
<tr>
<td bgcolor="#F8E4E8"><font FACE="Arial" SIZE="2">All details have been
provided by the Agents. All descriptions, distances and measurements are
approximate and non-contractual. 1st for French Property cannot be held
responsible for the content.</font></td>
</tr>
</table>
</font></td>
<td width="100"><script language="JavaScript" src="http://www.extremewebstats.com/count.js"></script>
<script language="javascript">init(11971);</script>
</td>
</tr>
</table>
</div>
</body>
</html>
Thanks!!!
Here is dept-ep.php script....
Any help please....
<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified:". gmdate ("D, d M Y H:i:s") ."GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
?>
<HTML><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<TITLE>1st for French Property: Property by department for sale</TITLE>
<meta name="Description" content="1st for French Property: Sales Property Listings - huge choice: Villas, Farmhouses, Gites, Longere, Mas, Mills, Barns">
<meta name="Keywords" content="property by department,1st for french property,department Properties">
<link rel=stylesheet type=text/css href=reg.css>
</head>
<body topmargin="0" leftmargin="0" link="#FFFF00" vlink="#FFFFFF" alink="#00FFFF">
<table border=0 cellpadding=0 cellspacing=0 style="border-collapse: collapse" bordercolor=#111111 width=785 valign="top" ><tr><td colspan=3 height=102 width=799><div align=left>
<table border=0 cellpadding=0 cellspacing=0 style="border-collapse: collapse; border-left-width:1; border-right-style:solid; border-right-width:1; border-top-width:1; border-bottom-width:1" bordercolor=#111111 width=799 height=120 alt="french properties for sale,gites,holiday rentals"><tr>
<td height=20 bgcolor="#008000" align="center" valign='middle'><b>
<?
echo "<h2>$ss property - Villas, Farmhouses, Gites, Longere, Mas, Mills, Barns</font></h2>"
?>
</td>
</tr><tr>
<td height=102 background="../../images/1stlonga.jpg" alt="French property"> </td></tr><tr>
<td height=20 bgcolor=#008000><table border=0 cellpadding=4 cellspacing=0 style="border-collapse: collapse" bordercolor=#111111 width=100%><tr><td width=85% height=20><b><font color=#FFFF00 face=Arial size=2><a style=font-size:10pt href="http://www.1st-for-french-property.co.uk/gif.htm">About Us</a> | <a style=font-size:10pt href="http://www.1st-for-french-property.co.u ... rtising</a> | <a style=font-size:10pt href=http://www.1st-for-french-property.co.u ... htm>France Directory</a> | <a style=font-size:10pt href="http://www.1st-for-french-property.co.u ... sources</a> | <a style=font-size:10pt href="http://www.1st-for-french-property.co.u ... >Offers</a> | </font><font face=Arial size=2><a style=font-size:10pt href="http://www.1st-for-french-property.co.uk/list.htm">Site Map</a> </font><font color=#FFFF00 face=Arial size=2>| </font><font face=Arial size=2>
<a style="font-size:10pt" href="http://www.1st-for-french-property.co.u ... tm">French Property for sale</a></font></b></td><td width=15% height=20 align=right><a href="http://www.1st-for-french-property.co.uk/gif.htm">
<img alt="[Contact Us]" src=../../images/contact_us.gif border=0 width="31" height="18"></a><a href="http://www.1st-for-french-property.co.u ... .htm"><img alt="[Search for French Properties]" src=../../images/site_map.gif border=0 width="31" height="18"></a><a href=http://1st-for-french-property.co.uk/default.htm><img alt="[1st for French Property Home]" src=../../images/home.gif border=0 width="31" height="18"></a></td></tr></table></td></tr></table></div></td></tr>
<tr>
<td height="100%" bgcolor="#D2F2D0" width="198" valign="top" style="border-left-width: 1; border-right-style: solid; border-right-width: 1; border-top-width: 1; border-bottom-width: 1">
<center>
<table border="0" cellpadding="2" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
<tr>
<td width="100%" bgcolor="#FFFF00"><p align="center"><b><font face="Arial" color="#FF0000">
FRENCH PROPERTY SEARCH</font></b></td>
</tr>
<tr>
<td width="100%" align="left"><FORM METHOD="post" ACTION="http://www.1stforfrenchproperty.com/1st ... viewEP.php" target="content">
<input type="text" name="find2" size="16"> <INPUT CLASS="forms" TYPE="submit" VALUE="Search" >
<?
echo "<h1>$ss</h1><p>We have an ever increasing number of properties in <b>$ss</b>. Please use the Quick Links below to find your dream home in <b>$ss</b>....</p>"
?>
</td></FORM>
</tr>
</table>
<table border="0" cellpadding="5" style="border-collapse: collapse" bordercolor="#111111" width="198">
<tr>
<td height="35">
<div align="center">
<BR><form>
<select name="theSelect" size=1 onChange="if (this.selectedIndex >0) window.location=this.options[this.selectedIndex].value">
<option value="">or pick other department...
<option value="http://www.1stforfrenchproperty.com/1st ... thing">Ain
<option value="http://www.1stforfrenchproperty.com/1st ... sne">Aisne
<option value="http://www.1stforfrenchproperty.com/1st ... er">Allier
<option value="http://www.1stforfrenchproperty.com/1st ... e-Hte-Prov.
<option value="http://www.1stforfrenchproperty.com/1st ... -Maritimes
<option value="http://www.1stforfrenchproperty.com/1st ... e">Ardeche
<option value="http://www.1stforfrenchproperty.com/1st ... ">Ardennes
<option value="http://www.1stforfrenchproperty.com/1st ... ge">Ariege
<option value="http://www.1stforfrenchproperty.com/1st ... Aube">Aube
<option value="http://www.1stforfrenchproperty.com/1st ... Aude">Aude
<option value="http://www.1stforfrenchproperty.com/1st ... n">Aveyron
<option value="http://www.1stforfrenchproperty.com/1st ... ">Bas-Rhin
<option value="http://www.1stforfrenchproperty.com/1st ... s-du-Rhone
<option value="http://www.1stforfrenchproperty.com/1st ... ">Calvados
<option value="http://www.1stforfrenchproperty.com/1st ... al">Cantal
<option value="http://www.1stforfrenchproperty.com/1st ... ">Charente
<option value="http://www.1stforfrenchproperty.com/1st ... e-Maritime
<option value="http://www.1stforfrenchproperty.com/1st ... Cher">Cher
<option value="http://www.1stforfrenchproperty.com/1st ... e">Correze
<option value="http://www.1stforfrenchproperty.com/1st ... >Cote-d'Or
<option value="http://www.1stforfrenchproperty.com/1st ... es-d'Armor
<option value="http://www.1stforfrenchproperty.com/1st ... se">Creuse
<option value="http://www.1stforfrenchproperty.com/1st ... eux-Sevres
<option value="http://www.1stforfrenchproperty.com/1st ... ">Dordogne
<option value="http://www.1stforfrenchproperty.com/1st ... ubs">Doubs
<option value="http://www.1stforfrenchproperty.com/1st ... ome">Drome
<option value="http://www.1stforfrenchproperty.com/1st ... e">Essonne
<option value="http://www.1stforfrenchproperty.com/1st ... Eure">Eure
<option value="http://www.1stforfrenchproperty.com/1st ... re-et-Loir
<option value="http://www.1stforfrenchproperty.com/1st ... >Finistere
<option value="http://www.1stforfrenchproperty.com/1st ... Gard">Gard
<option value="http://www.1stforfrenchproperty.com/1st ... Gers">Gers
<option value="http://www.1stforfrenchproperty.com/1st ... e">Gironde
<option value="http://www.1stforfrenchproperty.com/1st ... utes-Alpes
<option value="http://www.1stforfrenchproperty.com/1st ... te-Garonne
<option value="http://www.1stforfrenchproperty.com/1st ... aute-Loire
<option value="http://www.1stforfrenchproperty.com/1st ... s-Pyrenees
<option value="http://www.1stforfrenchproperty.com/1st ... ute-Savoie
<option value="http://www.1stforfrenchproperty.com/1st ... ute-Vienne
<option value="http://www.1stforfrenchproperty.com/1st ... >Haut-Rhin
<option value="http://www.1stforfrenchproperty.com/1st ... s-de-Seine
<option value="http://www.1stforfrenchproperty.com/1st ... t">Herault
<option value="http://www.1stforfrenchproperty.com/1st ... et-Vilaine
<option value="http://www.1stforfrenchproperty.com/1st ... dre">Indre
<option value="http://www.1stforfrenchproperty.com/1st ... e-et-Loire
<option value="http://www.1stforfrenchproperty.com/1st ... ere">Isere
<option value="http://www.1stforfrenchproperty.com/1st ... es">Landes
<option value="http://www.1stforfrenchproperty.com/1st ... ir-et-Cher
<option value="http://www.1stforfrenchproperty.com/1st ... ire">Loire
<option value="http://www.1stforfrenchproperty.com/1st ... Atlantique
<option value="http://www.1stforfrenchproperty.com/1st ... et">Loiret
<option value="http://www.1stforfrenchproperty.com/1st ... s=Lot">Lot
<option value="http://www.1stforfrenchproperty.com/1st ... et-Garonne
<option value="http://www.1stforfrenchproperty.com/1st ... re">Lozere
<option value="http://www.1stforfrenchproperty.com/1st ... e-et-Loire
<option value="http://www.1stforfrenchproperty.com/1st ... he">Manche
<option value="http://www.1stforfrenchproperty.com/1st ... rne">Marne
<option value="http://www.1stforfrenchproperty.com/1st ... aute-Marne
<option value="http://www.1stforfrenchproperty.com/1st ... e">Mayenne
<option value="http://www.1stforfrenchproperty.com/1st ... et-Moselle
<option value="http://www.1stforfrenchproperty.com/1st ... use">Meuse
<option value="http://www.1stforfrenchproperty.com/1st ... ">Morbihan
<option value="http://www.1stforfrenchproperty.com/1st ... e">Moselle
<option value="http://www.1stforfrenchproperty.com/1st ... re">Nievre
<option value="http://www.1stforfrenchproperty.com/1st ... Nord">Nord
<option value="http://www.1stforfrenchproperty.com/1st ... Oise">Oise
<option value="http://www.1stforfrenchproperty.com/1st ... Orne">Orne
<option value="http://www.1stforfrenchproperty.com/1st ... ris">Paris
<option value="http://www.1stforfrenchproperty.com/1st ... -de-Calais
<option value="http://www.1stforfrenchproperty.com/1st ... uy-de-Dome
<option value="http://www.1stforfrenchproperty.com/1st ... tlantiques
<option value="http://www.1stforfrenchproperty.com/1st ... Orientales
<option value="http://www.1stforfrenchproperty.com/1st ... one">Rhone
<option value="http://www.1stforfrenchproperty.com/1st ... e-et-Loire
<option value="http://www.1stforfrenchproperty.com/1st ... he">Sarthe
<option value="http://www.1stforfrenchproperty.com/1st ... ie">Savoie
<option value="http://www.1stforfrenchproperty.com/1st ... e-et-Marne
<option value="http://www.1stforfrenchproperty.com/1st ... e-Maritime
<option value="http://www.1stforfrenchproperty.com/1st ... aint-Denis
<option value="http://www.1stforfrenchproperty.com/1st ... mme">Somme
<option value="http://www.1stforfrenchproperty.com/1st ... Tarn">Tarn
<option value="http://www.1stforfrenchproperty.com/1st ... et-Garonne
<option value="http://www.1stforfrenchproperty.com/1st ... Territoire de Belfort">Territoire de Belfort
<option value="http://www.1stforfrenchproperty.com/1st ... l-de-Marne
<option value="http://www.1stforfrenchproperty.com/1st ... Val-d'Oise
<option value="http://www.1stforfrenchproperty.com/1st ... s=Var">Var
<option value="http://www.1stforfrenchproperty.com/1st ... ">Vaucluse
<option value="http://www.1stforfrenchproperty.com/1st ... ee">Vendee
<option value="http://www.1stforfrenchproperty.com/1st ... ne">Vienne
<option value="http://www.1stforfrenchproperty.com/1st ... es">Vosges
<option value="http://www.1stforfrenchproperty.com/1st ... nne">Yonne
<option value="http://www.1stforfrenchproperty.com/1st ... ">Yvelines
</select>
</form>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
<tr>
<td width="100%" bgcolor="#FFFF00" height="15">
<p align="center"><b><font face="Arial" color="#008000">DEPARTMENT QUICK LINKS</font></b></td>
</tr>
<tr>
<td width="100%">
<div align="center">
<center>
<table border="0" cellpadding="4" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
<tr>
<td height="20"><b><font face="Arial">
<a class="menu1" target="_top" href="http://www.1st-for-french-property.co.u ... .htm">Main Property page (map)</a></font></b></td>
</tr>
<tr>
<td height="20"><b><font face="Arial">
<?
echo "<a class='menu1' target='content' href='http://www.1stforfrenchproperty.com/1st ... =$ss'>List All Properties</a></font></b>"
?>
</td>
</tr>
<tr>
<td height="20">
<?
echo "<a class='menu1' target='content' href='http://www.1stforfrenchproperty.com/1st ... php?ss=$ss'>"
?>
<b><font face="Arial">What's new</font></b></td>
</tr>
<tr>
<td height="20"><b><font face="Arial">
<?
echo "<a class='menu1' target='content' href='http://www.1stforfrenchproperty.com/1st ... s&tt=Gites Complex'>"
?>
Gites and B&Bs</a></font></b></td>
</tr>
<tr>
<td height="20">
<b><font face="Arial">
<?
echo "<a class='menu1' target='content' href='http://www.1stforfrenchproperty.com/1st ... php?ss=$ss'>"
?>
Luxury Properties</a></font></b></td>
</tr>
<tr>
<td height="20">
<b><font face="Arial">
<?
echo "<a class='menu1' target='content' href='http://www.1stforfrenchproperty.com/1st ... =apartment'>"
?>
Apartments</a></font></b></td>
</tr>
<tr>
<td height="20">
<b><font face="Arial">
<?
echo "<a class='menu1' target='content' href='http://www.1stforfrenchproperty.com/1st ... php?ss=$ss'>"
?>
up to 50,000 Euros</a></font></b></td>
</tr>
<tr>
<td height="20">
<p align="left"><b><font face="Arial">
<?
echo "<a class='menu1' target='content' href='http://www.1stforfrenchproperty.com/1st ... php?ss=$ss'>"
?>
50000 to 100000 €</a></font></b></td>
</tr>
<tr>
<td height="20">
<b><font face="Arial">
<?
echo "<a class='menu1' target='content' href='http://www.1stforfrenchproperty.com/1st ... php?ss=$ss'>"
?>
100,000 to 250,000 €</a></font></b></td>
</tr>
<tr>
<td height="20">
<b><font face="Arial">
<?
echo "<a class='menu1' target='content' href='http://www.1stforfrenchproperty.com/1st ... php?ss=$ss'>"
?>
250,000 to 500,000 €</a></font></b></td>
</tr>
</table>
</center>
</div>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="190">
<tr>
<td width="100%" bgcolor="#FFFF00">
<p align="center"><b><font face="Arial" color="#008000">CONTACT US</font></b></td>
</tr>
<tr>
<td width="100%">
<p align="center"><font face="Arial">Email us from here - <b>
<a target="content" class="menu1" href="http://www.1stforfrenchproperty.com/1st ... /font></td>
</tr>
</table>
</center>
<p> </p>
<p align="center"><script language="JavaScript">
<!--
google_ad_client = 'pub-1020393809782867';
google_ad_width = 120;
google_ad_height = 600;
google_ad_format = '120x600_as';
// -->
</script>
<script language="JavaScript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></td>
<td width="599" valign="top" style="border-left-width: 1; border-right-style: solid; border-right-width: 1; border-top-width: 1; border-bottom-width: 1">
<?
echo " <h1>$ss Property for Sale</h1>"
?>
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
<tr>
<td width="32%" align="center" bgcolor="#008000"><b>
<font face="Arial" color="#FFFF00">
<?
echo "<a target='content' href='http://www.1stforfrenchproperty.com/1st ... php?ss=$ss'>"
?>
SHOW ALL PROPERTIES</a></font></b></td>
<td width="28%" align="center" bgcolor="#008000"><b>
<font face="Arial" color="#FFFF00">
<a target="content" href="http://www.1stforfrenchproperty.com/1st ... ">ADVANCED SEARCH</a></font></b></td>
<td width="20%" align="center" bgcolor="#008000"><b>
<font face="Arial" color="#FFFF00">
<a target="content" href="http://www.1stforfrenchproperty.com/1st ... EP.php">MY HOMES</a></font></b></td>
<td width="20%" align="center" bgcolor="#008000"><b>
<font face="Arial" color="#FFFF00">
<a target="content" href="http://www.1stforfrenchproperty.com/1st ... EP.php">MY NOTIFY</a></font></b></td>
</tr>
</table>
</center>
<div align="left">
<table border="0" cellpadding="4" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="585" height="757">
<tr>
<td width="610" height="749" style="border-left-width: 1; border-right-style: solid; border-right-width: 1; border-top-width: 1; border-bottom-width: 1; border-bottom-style:solid">
<p align="center">
<?
echo "<iframe frameborder=0 name='content' src='http://www.1stforfrenchproperty.com/1st ... php?ss=$ss' width='590' height='1800'>French properties for sale in all $ss</iframe>"
?>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</div>
<div align="left">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="800">
<tr>
<td width="700" align="center">
<font color='#000000' face='Arial' size='2'>
<table CELLSPACING="0" BORDER="1" CELLPADDING="2" WIDTH="500" style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td bgcolor="#F8CCD8"><font FACE="Arial"><b>
<p ALIGN="CENTER">DISCLAIMER</b></font></td>
</tr>
<tr>
<td bgcolor="#F8E4E8"><font FACE="Arial" SIZE="2">All details have been
provided by the Agents. All descriptions, distances and measurements are
approximate and non-contractual. 1st for French Property cannot be held
responsible for the content.</font></td>
</tr>
</table>
</font></td>
<td width="100"><script language="JavaScript" src="http://www.extremewebstats.com/count.js"></script>
<script language="javascript">init(11971);</script>
</td>
</tr>
</table>
</div>
</body>
</html>
Thanks!!!
- Derfel Cadarn
- Forum Contributor
- Posts: 193
- Joined: Thu Jul 17, 2003 12:02 pm
- Location: Berlin, Germany
First thing I noticed: you wrote
Make a habit of writing:
You noticed the difference? Always start a piece of php-code with "<?php" instead of "<?" (that's ASP, I think)..
But I'm not sure this is it.... I'll take a closer look.
Code: Select all
<?
echo "<h2>$ss property - Villas, Farmhouses, Gites, Longere, Mas, Mills, Barns</font></h2>"
?>Code: Select all
<?php
echo "<h2>$ss property - Villas, Farmhouses, Gites, Longere, Mas, Mills, Barns</font></h2>"
?>But I'm not sure this is it.... I'll take a closer look.
- Derfel Cadarn
- Forum Contributor
- Posts: 193
- Joined: Thu Jul 17, 2003 12:02 pm
- Location: Berlin, Germany
No changes, just making it easier to read
Please use the PHP-button when you enter a piece of code in your posting. Makes it easier to read, as you see.. 
Code: Select all
<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified:". gmdate ("D, d M Y H:i:s") ."GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
?>
<HTML><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<TITLE>1st for French Property: Property by department for sale</TITLE>
<meta name="Description" content="1st for French Property: Sales Property Listings - huge choice: Villas, Farmhouses, Gites, Longere, Mas, Mills, Barns">
<meta name="Keywords" content="property by department,1st for french property,department Properties">
<link rel=stylesheet type=text/css href=reg.css>
</head>
<body topmargin="0" leftmargin="0" link="#FFFF00" vlink="#FFFFFF" alink="#00FFFF">
<table border=0 cellpadding=0 cellspacing=0 style="border-collapse: collapse" bordercolor=#111111 width=785 valign="top" ><tr><td colspan=3 height=102 width=799><div align=left>
<table border=0 cellpadding=0 cellspacing=0 style="border-collapse: collapse; border-left-width:1; border-right-style:solid; border-right-width:1; border-top-width:1; border-bottom-width:1" bordercolor=#111111 width=799 height=120 alt="french properties for sale,gites,holiday rentals"><tr>
<td height=20 bgcolor="#008000" align="center" valign='middle'><b>
<?
echo "<h2>$ss property - Villas, Farmhouses, Gites, Longere, Mas, Mills, Barns</font></h2>"
?>
</td>
</tr><tr>
<td height=102 background="../../images/1stlonga.jpg" alt="French property"> </td></tr><tr>
<td height=20 bgcolor=#008000><table border=0 cellpadding=4 cellspacing=0 style="border-collapse: collapse" bordercolor=#111111 width=100%><tr><td width=85% height=20><b><font color=#FFFF00 face=Arial size=2><a style=font-size:10pt href="http://www.1st-for-french-property.co.uk/gif.htm">About Us</a> | <a style=font-size:10pt href="http://www.1st-for-french-property.co.uk/rentals.htm">Advertising</a> | <a style=font-size:10pt href=http://www.1st-for-french-property.co.uk/french_directory.htm>France Directory</a> | <a style=font-size:10pt href="http://www.1st-for-french-property.co.uk/resources.htm">Resources</a> | <a style=font-size:10pt href="http://www.1st-for-french-property.co.uk/books.htm">Offers</a> | </font><font face=Arial size=2><a style=font-size:10pt href="http://www.1st-for-french-property.co.uk/list.htm">Site Map</a> </font><font color=#FFFF00 face=Arial size=2>| </font><font face=Arial size=2>
<a style="font-size:10pt" href="http://www.1st-for-french-property.co.uk/french-property-for-sale-EP.htm">French Property for sale</a></font></b></td><td width=15% height=20 align=right><a href="http://www.1st-for-french-property.co.uk/gif.htm">
<img alt="[Contact Us]" src=../../images/contact_us.gif border=0 width="31" height="18"></a><a href="http://www.1st-for-french-property.co.uk/search.htm"><img alt="[Search for French Properties]" src=../../images/site_map.gif border=0 width="31" height="18"></a><a href=http://1st-for-french-property.co.uk/default.htm><img alt="[1st for French Property Home]" src=../../images/home.gif border=0 width="31" height="18"></a></td></tr></table></td></tr></table></div></td></tr>
<tr>
<td height="100%" bgcolor="#D2F2D0" width="198" valign="top" style="border-left-width: 1; border-right-style: solid; border-right-width: 1; border-top-width: 1; border-bottom-width: 1">
<center>
<table border="0" cellpadding="2" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
<tr>
<td width="100%" bgcolor="#FFFF00"><p align="center"><b><font face="Arial" color="#FF0000">
FRENCH PROPERTY SEARCH</font></b></td>
</tr>
<tr>
<td width="100%" align="left"><FORM METHOD="post" ACTION="http://www.1stforfrenchproperty.com/1stFP/propviewEP.php" target="content">
<input type="text" name="find2" size="16"> <INPUT CLASS="forms" TYPE="submit" VALUE="Search" >
<?
echo "<h1>$ss</h1><p>We have an ever increasing number of properties in <b>$ss</b>. Please use the Quick Links below to find your dream home in <b>$ss</b>....</p>"
?>
</td></FORM>
</tr>
</table>
<table border="0" cellpadding="5" style="border-collapse: collapse" bordercolor="#111111" width="198">
<tr>
<td height="35">
<div align="center">
<BR><form>
<select name="theSelect" size=1 onChange="if (this.selectedIndex >0) window.location=this.options[this.selectedIndex].value">
<option value="">or pick other department...
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Ain&tt=nothing">Ain
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Aisne">Aisne
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Allier">Allier
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Alpes-de-Hte-Prov.">Alpes-de-Hte-Prov.
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Alpes-Maritimes">Alpes-Maritimes
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Ardeche">Ardeche
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Ardennes">Ardennes
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Ariege">Ariege
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Aube">Aube
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Aude">Aude
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Aveyron">Aveyron
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Bas-Rhin">Bas-Rhin
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Bouches-du-Rhone">Bouches-du-Rhone
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Calvados">Calvados
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Cantal">Cantal
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Charente">Charente
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Charente-Maritime">Charente-Maritime
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Cher">Cher
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Correze">Correze
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Cote-d'Or">Cote-d'Or
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Cotes-d'Armor">Cotes-d'Armor
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Creuse">Creuse
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Deux-Sevres">Deux-Sevres
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Dordogne">Dordogne
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Doubs">Doubs
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Drome">Drome
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Essonne">Essonne
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Eure">Eure
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Eure-et-Loir">Eure-et-Loir
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Finistere">Finistere
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Gard">Gard
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Gers">Gers
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Gironde">Gironde
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Hautes-Alpes">Hautes-Alpes
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Haute-Garonne">Haute-Garonne
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Haute-Loire">Haute-Loire
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Hautes-Pyrenees">Hautes-Pyrenees
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Haute-Savoie">Haute-Savoie
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Haute-Vienne">Haute-Vienne
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Haut-Rhin">Haut-Rhin
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Hauts-de-Seine">Hauts-de-Seine
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Herault">Herault
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Ille-et-Vilaine">Ille-et-Vilaine
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Indre">Indre
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Indre-et-Loire">Indre-et-Loire
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Isere">Isere
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Landes">Landes
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Loir-et-Cher">Loir-et-Cher
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Loire">Loire
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Loire-Atlantique">Loire-Atlantique
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Loiret">Loiret
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Lot">Lot
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Lot-et-Garonne">Lot-et-Garonne
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Lozere">Lozere
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Maine-et-Loire">Maine-et-Loire
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Manche">Manche
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Marne">Marne
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Haute-Marne">Haute-Marne
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Mayenne">Mayenne
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Meurthe-et-Moselle">Meurthe-et-Moselle
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Meuse">Meuse
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Morbihan">Morbihan
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Moselle">Moselle
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Nievre">Nievre
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Nord">Nord
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Oise">Oise
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Orne">Orne
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Paris">Paris
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Pas-de-Calais">Pas-de-Calais
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Puy-de-Dome">Puy-de-Dome
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Pyrenees-Atlantiques">Pyrenees-Atlantiques
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Pyrenees-Orientales">Pyrenees-Orientales
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Rhone">Rhone
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Saone-et-Loire">Saone-et-Loire
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Sarthe">Sarthe
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Savoie">Savoie
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Seine-et-Marne">Seine-et-Marne
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Seine-Maritime">Seine-Maritime
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Seine-Saint-Denis">Seine-Saint-Denis
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Somme">Somme
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Tarn">Tarn
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Tarn-et-Garonne">Tarn-et-Garonne
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Territoire de Belfort">Territoire de Belfort
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Val-de-Marne">Val-de-Marne
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Val-d'Oise">Val-d'Oise
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Var">Var
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Vaucluse">Vaucluse
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Vendee">Vendee
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Vienne">Vienne
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Vosges">Vosges
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Yonne">Yonne
<option value="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php?ss=Yvelines">Yvelines
</select>
</form>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
<tr>
<td width="100%" bgcolor="#FFFF00" height="15">
<p align="center"><b><font face="Arial" color="#008000">DEPARTMENT QUICK LINKS</font></b></td>
</tr>
<tr>
<td width="100%">
<div align="center">
<center>
<table border="0" cellpadding="4" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
<tr>
<td height="20"><b><font face="Arial">
<a class="menu1" target="_top" href="http://www.1st-for-french-property.co.uk/french-property-for-sale-EP.htm">Main Property page (map)</a></font></b></td>
</tr>
<tr>
<td height="20"><b><font face="Arial">
<?
echo "<a class='menu1' target='content' href='http://www.1stforfrenchproperty.com/1stFP/department/maindept.php?ss=$ss'>List All Properties</a></font></b>"
?>
</td>
</tr>
<tr>
<td height="20">
<?
echo "<a class='menu1' target='content' href='http://www.1stforfrenchproperty.com/1stFP/department/whatsnew.php?ss=$ss'>"
?>
<b><font face="Arial">What's new</font></b></td>
</tr>
<tr>
<td height="20"><b><font face="Arial">
<?
echo "<a class='menu1' target='content' href='http://www.1stforfrenchproperty.com/1stFP/department/type.php?ss=$ss&tt=Gites Complex'>"
?>
Gites and B&Bs</a></font></b></td>
</tr>
<tr>
<td height="20">
<b><font face="Arial">
<?
echo "<a class='menu1' target='content' href='http://www.1stforfrenchproperty.com/1stFP/department/lux.php?ss=$ss'>"
?>
Luxury Properties</a></font></b></td>
</tr>
<tr>
<td height="20">
<b><font face="Arial">
<?
echo "<a class='menu1' target='content' href='http://www.1stforfrenchproperty.com/1stFP/department/type.php?ss=$ss&tt=apartment'>"
?>
Apartments</a></font></b></td>
</tr>
<tr>
<td height="20">
<b><font face="Arial">
<?
echo "<a class='menu1' target='content' href='http://www.1stforfrenchproperty.com/1stFP/department/50.php?ss=$ss'>"
?>
up to 50,000 Euros</a></font></b></td>
</tr>
<tr>
<td height="20">
<p align="left"><b><font face="Arial">
<?
echo "<a class='menu1' target='content' href='http://www.1stforfrenchproperty.com/1stFP/department/100.php?ss=$ss'>"
?>
50000 to 100000 €</a></font></b></td>
</tr>
<tr>
<td height="20">
<b><font face="Arial">
<?
echo "<a class='menu1' target='content' href='http://www.1stforfrenchproperty.com/1stFP/department/250.php?ss=$ss'>"
?>
100,000 to 250,000 €</a></font></b></td>
</tr>
<tr>
<td height="20">
<b><font face="Arial">
<?
echo "<a class='menu1' target='content' href='http://www.1stforfrenchproperty.com/1stFP/department/500.php?ss=$ss'>"
?>
250,000 to 500,000 €</a></font></b></td>
</tr>
</table>
</center>
</div>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="190">
<tr>
<td width="100%" bgcolor="#FFFF00">
<p align="center"><b><font face="Arial" color="#008000">CONTACT US</font></b></td>
</tr>
<tr>
<td width="100%">
<p align="center"><font face="Arial">Email us from here - <b>
<a target="content" class="menu1" href="http://www.1stforfrenchproperty.com/1stFP/contactEP.php">click</a></b></font></td>
</tr>
</table>
</center>
<p> </p>
<p align="center"><script language="JavaScript">
<!--
google_ad_client = 'pub-1020393809782867';
google_ad_width = 120;
google_ad_height = 600;
google_ad_format = '120x600_as';
// -->
</script>
<script language="JavaScript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></td>
<td width="599" valign="top" style="border-left-width: 1; border-right-style: solid; border-right-width: 1; border-top-width: 1; border-bottom-width: 1">
<?
echo " <h1>$ss Property for Sale</h1>"
?>
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
<tr>
<td width="32%" align="center" bgcolor="#008000"><b>
<font face="Arial" color="#FFFF00">
<?
echo "<a target='content' href='http://www.1stforfrenchproperty.com/1stFP/department/maindept.php?ss=$ss'>"
?>
SHOW ALL PROPERTIES</a></font></b></td>
<td width="28%" align="center" bgcolor="#008000"><b>
<font face="Arial" color="#FFFF00">
<a target="content" href="http://www.1stforfrenchproperty.com/1stFP/searchEP.php">ADVANCED SEARCH</a></font></b></td>
<td width="20%" align="center" bgcolor="#008000"><b>
<font face="Arial" color="#FFFF00">
<a target="content" href="http://www.1stforfrenchproperty.com/1stFP/rememberEP.php">MY HOMES</a></font></b></td>
<td width="20%" align="center" bgcolor="#008000"><b>
<font face="Arial" color="#FFFF00">
<a target="content" href="http://www.1stforfrenchproperty.com/1stFP/notifyEP.php">MY NOTIFY</a></font></b></td>
</tr>
</table>
</center>
<div align="left">
<table border="0" cellpadding="4" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="585" height="757">
<tr>
<td width="610" height="749" style="border-left-width: 1; border-right-style: solid; border-right-width: 1; border-top-width: 1; border-bottom-width: 1; border-bottom-style:solid">
<p align="center">
<?
echo "<iframe frameborder=0 name='content' src='http://www.1stforfrenchproperty.com/1stFP/department/maindept.php?ss=$ss' width='590' height='1800'>French properties for sale in all $ss</iframe>"
?>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</div>
<div align="left">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="800">
<tr>
<td width="700" align="center">
<font color='#000000' face='Arial' size='2'>
<table CELLSPACING="0" BORDER="1" CELLPADDING="2" WIDTH="500" style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td bgcolor="#F8CCD8"><font FACE="Arial"><b>
<p ALIGN="CENTER">DISCLAIMER</b></font></td>
</tr>
<tr>
<td bgcolor="#F8E4E8"><font FACE="Arial" SIZE="2">All details have been
provided by the Agents. All descriptions, distances and measurements are
approximate and non-contractual. 1st for French Property cannot be held
responsible for the content.</font></td>
</tr>
</table>
</font></td>
<td width="100"><script language="JavaScript" src="http://www.extremewebstats.com/count.js"></script>
<script language="javascript">init(11971);</script>
</td>
</tr>
</table>
</div>
</body>
</html>
?>- Derfel Cadarn
- Forum Contributor
- Posts: 193
- Joined: Thu Jul 17, 2003 12:02 pm
- Location: Berlin, Germany
First thing I noticed:
In the (huge) form, where one selects the department, there isn't a form method defined. I think you should use
and change the options into something like:
Then, you can import the value into the script with something like
optimizing it is for later, when the thing works properly.... 
In the (huge) form, where one selects the department, there isn't a form method defined. I think you should use
Code: Select all
<FORM ACTION="POST" TARGET="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php">Code: Select all
<option value="Aisne">AisneCode: Select all
<?php
$ss=$_POST['theSelect'];
?>I think you mean

Code: Select all
<FORM METHOD="POST" ACTION="http://www.1stforfrenchproperty.com/1stFP/department/dept-EP.php">