How to pass value from form textfield to snippet

I created a simple snippet [[!qdb? &MList=‘1’ ]] who is querying database table and returns the data.
When i use it directly in my page it returns correct data table. Now i want to add a textfield, in the same html page, probably inside form in order the user to write in the field the value of variable MList and by button submission this value to be passed inside my snippet(instead of ‘1’ in my above example ) and to receive the expected table output. I tried to find something similar without success any help will be appreciated.
Thanks

In your snippet just read the value of the form field from the variables $_POST, $_GET or $_REQUEST (depending on how you set up your form).

Or use an extra like getReqParam or getUrlParam that do the same.

Thank you for your response, gerReqParam sounds good to me, is there any document who explains how to use it?

I think something like this should work:

[[!qdb? &MList=`[[!getReqParam? &name=`field_name` &type=`POST`]]` ]]

Just look at the code of the snippet. All it does is to read the value from the specified Superglobal.

Thank you very much, this is what i was looking for