PHP page Forward
Posted: Mon Aug 17, 2009 2:17 pm
ok i am trying to create city pages such as birmingham.php that all it does is forward to the search result for birmingham we are a real estate company that is trying to get some better SEO with all our surrounding citys... our search results page land on listings.php
i have done this to our footer of each page with this form action
is it possible to use this form action in like a PHP header forward?
Any suggestions on this would be a great help
Thank You
i have done this to our footer of each page with this form action
Code: Select all
<form name="Birmingham" action="listings.php" method="post">
<input type="hidden" name="searchType" value="custom">
<input type="hidden" name="newSearch" value="true">
<input type="hidden" name="table" value="rs">
<input type="hidden" name="city" value="2192">
<input type="hidden" name="beforeListPrice" value="0">
<input type="hidden" name="afterListPrice" value="any">
<input type="hidden" name="featuredOnly" value="false">
</form>
<a href="javascript:void[0];" onclick="document.forms['Birmingham'].submit(); return false;">Birmingham</a>
Code: Select all
<?php
header("location: javascript:void[0]; onclick="document.forms['Birmingham'].submit(); return false;"");
?>Thank You