Forum Moderators: coopster & phranque

Message Too Old, No Replies

Order form antics

         

toolman

4:22 pm on Jan 24, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is it possible (from an ssl server) to encase an order form in a php page that has the action pointed at itself. When submitted the processor will then pass the variables on to the intended desination. That way the destination is never revealed.

volatilegx

6:04 pm on Jan 24, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



sure, just put an if statement detecting the METHOD of the request. in perl, it would be something like

if ($ENV{'REQUEST_METHOD'} eq "POST"){
process data...
}

nosanity

6:14 pm on Jan 24, 2002 (gmt 0)

10+ Year Member



in php...

if ($HTTP_SERVER_VARS["REQUEST_METHOD"] == "POST")
{
  // process data here
} else {
  // you should handle a GET request as well
}

noSanity