I have a page in my moodle block which has some parameters passed in the url.This is what it looks like: http://localhost/blocks/learning_strategizer/viewlp.php?lp_id=1-2
This page(viewlp.php) is calling a form with parameters from lp_id:
$customdata=array(substr($lp_id,2));
$form = new viewlpstudent_form(null,$customdata);
This form is pulling out data based on the lp_id and taking in user choices. It has an action button obviously in the end.
When I click the action button, I need to fetch the user choices from the form as well as the URL parameter that I sent to the form (substr($lp_id,2))
But problem is: when I click the action button the parameter is lost and becoming null. Is there anyway to fix this.