I’m currently using the following two command to generate client statements populated from mysql tables. There are three variables, client_id, date_start. date_end
wget -O mypage.html "http://mypage.php?client_id=var1&date_start=var2&date_end=var3"
wkhtmltopdf-i386 --margin-left 5mm --margin-right 5mm mypage.html mypage.pdf
This works perfectly and produces usable statements. What I would now like to do is implement a web page using three drop down menus to select each variable rather than directly typing it into linux command line. The user would select the client, date start and date end, using the web interface then click “Print Report”. This would send the variables to the command line and run the two lines displayed above.
I know how to make forms but I cant figure out how to pass the variables to the command line and run these 2 lines. I’m sure its simple if anyone can help?
Many thanks
Pitfalls: You should use
/path/to/wgetand/path/to/htmltopdf-i386to make sure, your PATH is OK