P
Petyr David
I would like to pass a URL parameter into a 1 line PHP script embedded
in my HTML
something like:
https://servername.bigco.com:9443/dev/searchit.html?search_dir=/var/data/monthly
Ideally the value of search_dir (/var/data/monthly) would be passed
to the php script
Something like this:
?>php
passthru("/var/www/cgi-bin/getdirnames.pl $search_dir");
Right now getdirnames.pl has a hard coded directory name. It does a
find, comes back with directory names and then formats the returned
strings as HTML checkbox tags. The passthru prints the perl script's
output to the HTML
I'd like to make the whole process dynamic
TX - hope that was clear
in my HTML
something like:
https://servername.bigco.com:9443/dev/searchit.html?search_dir=/var/data/monthly
Ideally the value of search_dir (/var/data/monthly) would be passed
to the php script
Something like this:
?>php
passthru("/var/www/cgi-bin/getdirnames.pl $search_dir");
Right now getdirnames.pl has a hard coded directory name. It does a
find, comes back with directory names and then formats the returned
strings as HTML checkbox tags. The passthru prints the perl script's
output to the HTML
I'd like to make the whole process dynamic
TX - hope that was clear