I have shell script which I run like this/var/www/test.sh 2015or/var/www/test.sh 2014When this script runs, it actually takes data from freeradius and generates gnuplot base graph for the specific year in the www folder like /var/www/output.jpg Now I want to make a php drop down menu with years like 2015, 2014 and so on, and when user select any year, it should run the script with the specific choice year. But how can I pass year to the shell script.so far I have tried this but its not working.root@rm:/var/www# cat test5.php<html><head><title>some title</title></head><body>  <form method=post action=>    <input type=text name=something value=<?= isset($_POST['something']) ? htmlspecialchars($_POST['something']) : '' ?> />    <input type=submit name=submit />  </form><?phpif(isset($_POST['submit'])) {echo ($_POST['something']);// Now the script should be executed with the selected year       $message=shell_exec(/var/www/test.sh $something);// and after executing the script, this page should also open the output.jpg in the browser}?></body><html>root@rm:/var/www#
php drop down menu to execute script with argument
bash;php