I have a page in my website that already does a search for shirt and pants material (i.e. color, buttons, size,....). Upon the user entering the information, the search page will display the result found in the database.
What i am trying to do is call this page from a master page and capture the result that the search page returns in my master page.
I am trying to avoid re-writting teh search criteria another time... any suggestions
thanks
Getting params from a search page
Moderator: General Moderators
-
PingLeeQuan
- Forum Commoner
- Posts: 58
- Joined: Tue Sep 03, 2002 8:08 am
You could do it in a main "varable page" in the same directory.
Make sure to include the file whatever.php into your page your calling.
Then request the function().
eg.
funcs.php
in a page called checkturns.php i would type this:
and call the function within the page...
hope i helped 
Make sure to include the file whatever.php into your page your calling.
Then request the function().
eg.
funcs.php
Code: Select all
<?php
function CheckTurns ($numturns) {
global $users, $config;
$turns2 = $configїmaxturns] + 1;
if ($numturns > $turns2)
TheEnd('<span class="cbad">FATAL ERROR</span>: attempted to use more turns than avaliable!.');
else if ($numturns > $usersїturns])
TheEnd('<span class="cbad">FATAL ERROR</span>: attempted to use more turns than available!');
}
?>Code: Select all
include ("funcs.php");Code: Select all
checkturns (blablablabla);
?>-
PingLeeQuan
- Forum Commoner
- Posts: 58
- Joined: Tue Sep 03, 2002 8:08 am