This topic is locked
[SOLVED]

 searchform_text - GET VALUE FOR EMAIL

3/30/2015 7:05:22 AM
PHPRunner General questions
C
chrispa author

HI
i use that script
http://xlinesoft.com/phprunner/docs/email_to_selected_users.htm
what i need is to get the session vlue of search result from searchform_text ( which is an email search field ) and replace

$data["EmailField"] from the script with that value.
so when user enter the email to search on the search box get a list of rows , then select and click the button and need the script to sent

email to the email address entered on search box.
thanks in advance
rgds

chris

Sergey Kornilov admin 3/30/2015

I'm not really sure what "searchform_text" is as the article you referring to doesn't talk about such a field. You need to provide more details on how you use that script.

C
chrispa author 3/31/2015

ok i am sorry i was not clear.
i have found that
https://asprunner.com/phprunner/docs/print_search_parameters_on_list_page.htm
and i am using that script THAT IS WORKING FINR FOR
Printing basic search parameters:
global $strTableName;
if (isset($_SESSION[$strTableName.'_advsearch']))
{
$searchClauseObj = unserialize($_SESSION[$strTableName.'_advsearch']);
}
echo $searchClauseObj->_where[$searchClauseObj->sessionPrefix."_simpleSrch"];
WHAT I NEED IS NOT PRINTING THE BASIC SEARCH PARAMETER BUT SOMEHOW INSTEAD OF PRINTING ( ON MY CASE IS AN EMAIL ADDRESS THAT USER ENTERS TO SEARCH RESULTS ) TO SENT AN EMAIL TO THAT SEARCH PARAMETER.
I MEAN i must somehow to get that basic search parameter and use it as the email address to be used on mailrunner
is it that possible ?
thanks