PHP Classes

Paameters in ACTION statement

Recommend this page to a friend!

      PHP Forms Class with HTML Generator and JavaScript Validation  >  PHP Forms Class with HTML Generator and JavaScript Validation package blog  >  How to Show Google Ma...  >  All threads  >  Paameters in ACTION statement  >  (Un) Subscribe thread alerts  
Subject:Paameters in ACTION statement
Summary:Special characters are escaped after parsing
Messages:3
Author:Mark Allen
Date:2007-05-28 12:50:29
Update:2007-05-31 08:16:28
 

  1. Paameters in ACTION statement   Reply   Report abuse  
Picture of Mark Allen Mark Allen - 2007-05-28 12:50:29
As an example, I have the following
$myform->METHOD="GET"
$myform->ACTION = ("new.php?var1=1&var2=2")

After presentation (via Smarty), the final output is

form method="get" action="new.php?var1=1&var2=2"

Is there any way of avoiding the "&" in the line?

  2. Re: Paameters in ACTION statement   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2007-05-28 14:26:11 - In reply to message 1 from Mark Allen
The HTML entities are necessary to encode the values properly.

Anyway, if you use the GET method, the browser will override any parameters that you enter in the ACTION URL after ? . You need to use the POST method to preserve the original ACTION URL parameters.

  3. Re: Parameters in ACTION statement   Reply   Report abuse  
Picture of Mark Allen Mark Allen - 2007-05-31 08:16:28 - In reply to message 2 from Manuel Lemos
Changed to post --- Worked wonderfully