Hi Folks,
I have a little Problem with evaluating vars from one page to the other using the Form/Post method. You have to excuse my little Experience with PHP 😉
On the Follow_Search-Form, I'm getting informations for
SearchForOne, SearchForTwo, SearchForThree in a
form/Selecttion list. All Vars are passed to the next form as shows an echoing back to the Web-interface.
However, i can't evaluate the 2nd part.
Here's the Code that evaluates some of it...
Let's define what we're looking for - Search_Arg 1
if ( "$SearchForOne" ) {
Find out what Table we need to query.
if (preg_match ("/cust_query/", $TableColOne)) {
$tableOne = "cust_query";
} elseif (preg_match ("/followup/", $TableColOne)) {
$tableOne = "followup";
}; # cust_query or followup ...
generate the SQL-Search-String
$Search1 = "$tableOne.$TableColOne like \"$SearchForOne\"";
}; # If SearchFor exists.
As I have 3 Search-Args I need to process, you have a similar if-statement for SearchForTwo and SearchForThree.
However, once preg_match ("/cust_query/", $TableColOne) has been processed - all following preg_match instances will fail or be ignored (Don't know what applies).- even when from the logical point of view, all Data required for processing exists.
Here the gathered info from the search.php as
* <Search_Arg> in <Column_Name> (<Table_Name>)
- COMPUTER in cust_query_companyname (cust_query)
- Active in follow_install ()
- mertinj in follow_contact ()
Anyone got a clue what I'm doing wrong?