Re: Quickform: specify POST target

From: Date: Sat, 12 Mar 2005 13:28:44 +0000
Subject: Re: Quickform: specify POST target
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-17993@lists.php.net to get a copy of this message
Sam Miller escreveu:
Hello I'm having a little problem with my Quickform scripts. I am using Mambo CMS and therefore I have to rewrite all my old scripts in order to fit into this CMS. A regular Mambo page has a URL that looks like this: index.php?option=com_content&task=view&id=17&Itemid=33 If I use a Quickform script on this page, it always gets posted to index.php (without further parameters). This makes it impossible to process the form. Any possibility to force QF to POST to the subpage (including all URL parameters)? Thanks Sam C. Miller Try This:
$form =& new HTML_QuickForm('form', 'POST', $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING']); Jacques, from Brazil.

« previous php.pear.general (#17993) next »