This is my complete PHP code the tests the input from a form in my index.html:
PHP Code:
<?PHP
if ($_POST['go']) {
$type = $_POST['prop_type'];
$loc = $_POST['location'];
if ($type == "" || $loc == "")
{
echo "<script language=javascript>alert('Invalid input!')</script>";
echo "<script language=javascript>javascript:history.go(-1)</script>";
}
else
{
if ($type == 'type1' && $loc == 'loc1'){
//javascript:showdiv... this is how i use this in my html file, in php no good just displays blank page of process.php
echo "<script language=javascript>javascript:showdiv('contentarea'); ajaxpage('categorized.html', 'contentarea'); changeZIndex(4);</script>";
}
elseif ($type == 'type2' && $loc == 'loc2')
//javascript:showdiv... this is how i use this in my html file, in php no good just displays blank page of process.php
echo "<script language=javascript>javascript:showdiv('contentarea'); ajaxpage('result2.html', 'contentarea'); changeZIndex(4);</script>";
else
echo "<script language=javascript>javascript:history.go(-1)</script>";
}
}
?>
To elaborate my problem further, all the sub pages in my site is loaded using the Dynamic Content Ajax Page script form this link...
http://www.dynamicdrive.com/dynamici...jaxcontent.htm
Now I have a a search function form the has dropdown lists that when submitted will be processed by a php file (full code above) and then show users the result from a static page. This static should be called using the ajaxpage() function that I can't achieve.
Hopefully there's a way to call this ajaxpage function from external php.
Thanks!
Bookmarks