Submitting to cgi script

From: Date: Sun, 21 Jul 2002 23:46:44 +0000
Subject: Submitting to cgi script
Groups: php.general 
Request: Send a blank email to php-general+get-108771@lists.php.net to get a copy of this message
How can I do this I have a form that I want to submit to a second php script that in turn submits to a cgi script but I can not get it to work. If I submit from the form to the cgi script it works just fine. But there are something that I need to do with the data besides submitting to the cgi script. Could you look at the sample code below and see if I am doing something wrong. I hope this makes sense I am not quit sure how to ask what I want to know If I was submitting directly to the cgi script the form action would look like this <FORM ACTION="/cgi-bin/siteUserEmail/siteUserEmail.cgi" METHOD="POST"> <FORM ACTION="siteUserEmail.php" METHOD="POST"> <INPUT TYPE="TEXT" NAME="forwardaddr" SIZE="32" VALUE=""> <TEXTAREA NAME="aliases" ROWS="5" COLS="32"></TEXTAREA> <INPUT TYPE="CHECKBOX" NAME="vacationmode" VALUE="on" > <TEXTAREA NAME="vacationmsg" ROWS="5" COLS="32"></TEXTAREA>> <INPUT TYPE="HIDDEN" NAME="name" SIZE="-1" VALUE="tester54321"> <INPUT TYPE="HIDDEN" NAME="group" SIZE="-1" VALUE="site53"> <INPUT TYPE="HIDDEN" NAME="page" SIZE="-1" VALUE="siteuseremail"> <input type="submit" name="Submit" value="submit"> </FORM> The siteUserEmail.php file <? $cmd="/cgi-bin/siteUserEmail/siteUserEmail.cgi?forwardaddr=$forwardaddr &aliases=$aliases&vacationmode=$vacationmode&vacationmsg=$vacationmsg &name=$name&group=$group&page=$page"; exec($cmd); ?> -- Best regards, rdkurth mailto:rdkurth@starband.net

« previous php.general (#108771) next »