tcl-mod_dtcl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Hubbard" <>
Subject Re: GET and POST variables
Date Tue, 16 Jul 2002 15:17:14 GMT
You can do an hgetvars and then check the value of $ENVS(REQUEST_METHOD) to see if the HTTP
method was GET or POST.  That can be used in your script logic.  

ENVS is actually request::ENVS .  That's something which is apparently not documented, and
was a big stumbling block for me.

Mark Hubbard:
Microsoft Certified Professional

"My grandfather once told me that there are two kinds of people: 
those who work and those who take the credit. He told me to try 
to be in the first group; there was less competition there."
   - Indira Gandhi

  ----- Original Message ----- 
  From: Damian Bacalov 
  Sent: Tuesday, July 16, 2002 8:55 AM
  Subject: GET and POST variables

  How can i get POST and GET variables in separate way.

  For example:
  My page recieve:
  Var1=Val1 by POST method
  Var1=Val2 by GET method
  And i need to do this:
  set VariablePost = Var1 POST
  set VariableGet = Var1 Get
  There is a solution for this?
  PD: sorry about my primitive english

View raw message