here is a sof link which could help
Arman A sry I lost attention of that converation.
First you'll need to setup a HTML Form like Mike already linked
After that you can extract the variable with:
$variablename = $_POST['namepropfromhtml']
And Prozess it further from there.
If I don't forget about this I'll post more code here later