Page 1 of 1

sending arguments to a perl script using php

Posted: Thu Mar 11, 2004 9:27 am
by sh33p1985
basically, it is to test the functionality on the perl script (in this case, a simple calculator with 4 operators + - * / and 2 textfield inputs, first integer and second integer). the script is called from a webpage with 2 textfields (as mentioned above) and a drop down menu to select the operator with a button to calculate and output the result.

does anyone have any idea on how to acheive this because with my limited php knowledge i really havent got a clue!!!
thanks
deyna

Posted: Thu Mar 11, 2004 11:28 am
by xisle
post your form to the script in the cgi-bin or call
it with system()
try looping through <STDIN> within your .pl