Re: php cgi question

From: Date: Sun, 13 Oct 2002 14:10:21 +0000
Subject: Re: php cgi question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-119787@lists.php.net to get a copy of this message
Just a quick addition, both the submit/link were very basic, they both worked like this $location = "/cgi-bin/getmailtest.cgi"; // $location = "getmail.php"; echo "$location<br>"; print("<a href=$location>Click here to test the cgi</a><br>\n"); print("<form name=form1 method=post action=$location>"); print("press the button to try the cgi as a redirect this way<br>"); print("<input type=submit value=\"try it\">"); (that was because I was messing round with differing locations of the cgi, different extensions etc.. made it easier to set the actual cgi as a variable, thats all) Eventually if I can get this to work, it will have to accept a variable as well being passed (the identifier), something like getmailtest.cgi?id=$identifier Thanks again Hope someone can help David Cook

« previous php.general (#119787) next »