This topic is locked

Link to Search Results

9/28/2006 1:10:49 PM
PHPRunner General questions
M
mckirkus author

Is there any way to bookmark search results? It seems like a lot of information is not contained in the URL which causes problems because too much information is filtered out in subsequent searches.
Using PHPRunner 3.0 for now.
Thank you.

Sergey Kornilov admin 9/28/2006

If you use basic search simply copy list page URL
http://localhost:8000/Project2123/cars_lis...ns&SearchField=
If you use Advanced Search open ..._search.php page and chage form method from POST to GET.

Run Advanced Search and copy URL. URL will be much longer however it works if you bookmark it. Sample URL:
http://localhost:8000/Project2123/cars_lis...ue1_YearOfMake=

M
mckirkus author 9/28/2006

Thanks, I can get the user ID onto different parts of the page using

<?php echo $_SESSION["UserID"];?>



Is there any way to easily show that user's email address as well? I'm logging in and I want to show more user detail and info about the organization they're associated outside of the table I'm using to house the standard PHPRunner output.

Alexey admin 9/29/2006

Hi,
sure, you can.

At first you need to save user's email address into session variable in login.php file.

Find this snippet there:

if($data=db_fetch_array($rs))

{

$_SESSION["UserID"] = @$_POST["username"];

and insert this line just after:

$_SESSION["email"]=$data["email"];



where email is your actaual field name.

Then put this line anywhere in the PHP pages:

<?php echo $_SESSION["email"];?>