How to pass Moodle Form Data to another page?

How to pass Moodle Form Data to another page?

by WL L -
Number of replies: 1
I have created a Moodle form that collects some date data.


I want to pass those variables to another page for displaying the result. (i.e. $semStartOne).

But I tried different methods and did not know how to do it. 

Does anyone have experience with it?
Average of ratings: -
In reply to WL L

Re: How to pass Moodle Form Data to another page?

by Andreas Grabs -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Translators

Hi,

while you create an instance of your form you can pass the destination url:

$mform = new edit(new moodle_url('...'));

Best regards
Andreas

Average of ratings: Useful (1)