This topic is locked

PHPrunner combinations

11/29/2010 8:15:13 AM
PHPRunner General questions
N
netrebelos author

Hi
After i Build the code with phprunner, I include the code of the phprunner page into my html page. For example I copy the code of the list.page and paste it into me index.php file which it has html code.
SEE THE website
If you look at the website you will see a drop down list and the results of the search (the list.php code).
The question is: How the grey pictures (banners) at the left will change accordingly with the combination that the user choose from the drop down lists?
Thanks

Sergey Kornilov admin 11/29/2010

Need more info. How do you want to display those banners? Are they part of PHPRunner project?

N
netrebelos author 11/30/2010

No they are not. But I want to use the variables to write the if condition. For example
You choose from three drop down list (that they were make with the lookup wizard of the phprunner)a combination of these:
name

surname

age
Every time I choose a person I want the photo of this person to appear. But not inside the template of the phprunner

Sergey Kornilov admin 11/30/2010

I guess you can use Javascript API to implement onchange event of those dropdown boxes.

Here is an example of how you can do this:

http://xlinesoft.com/phprunner/docs/show_dropdown_list_of_us_states.htm

N
netrebelos author 12/1/2010

Ok thank you. But the best is to use php, I want after the page loads to appear the banners.

J
Jane 12/1/2010

Hi,
you can parse search parameters in the List page: Before process event, then save it in the session variables and use these session variables in your header (to show banner).

Here is just a sample code how to check search parameters:

http://www.asprunner.com/forums/topic/14570-how-to-print-search-parameters-on-the-list-page/pagehlsearchfromsearch1