This topic is locked

Passing values to PHPRunner

10/30/2013 6:14:56 AM
PHPRunner General questions
S
slotracer author

Hi all, is it possible to pass values to PHPR ? Currently I have 'hand coded' pages which do the following.

On the first page I display a form with 2 drop down boxes for the user to select values. On 'submit' the page is then re-directed to a second page with the values in Cookies (could easily be in the URL). This second page then uses these values(variables) in the MySQL string to select a record set from the database table and I hand code the formatted output.

You can see this in action at - http://www.lslots.co.uk/driverdata.php - My link
My current method works fine at the moment, but I have plans to extend the information available and if what I am asking is possible it will save me a lot of time.
Thanks

C
cgphp 10/30/2013

You can access that values in PHPrunner using the superglobal $_SESSION associative array. Check the official PHP manual page http://php.net/manual/en/reserved.variables.session.php