HTML Quickform passes values in URL

From: Date: Thu, 14 Dec 2006 19:19:22 +0000
Subject: HTML Quickform passes values in URL
Groups: php.pear.general php.smarty.general 
Request: Send a blank email to php-smarty-general+get-13640@lists.php.net to get a copy of this message
Hi I have used the combination of HTML Quickform and Smarty template pretty well. I always use the display() method of Smarty Template. But now for a specific use, for a simple login page with username and password fields, I have to use the fetch() method and "echo" the result returned by the fetch() method. The user interface is working fine, but when I submit the form, a weird thing happens. All the values of the form are being passed through the URL, like, "<url of the php page>?lusername=testuser&lpasswd=testme&welcomeimg.x=0&welcomeimg.y=0" This is a serious threat as the username and password are passed through the URL. Also the form doesn't have any POST variables on submitting the form, though I instantiate the form this way, $form = new HTML_QuickForm('form', 'POST', $_SERVER['PHP_SELF']); The same form works fine if I use display() method, but I can't use the same for some reason. I believe that technically it should work fine when I use the combination of "fetch()" and "echo". Please let me know what I am missing here. Sorry I didn't provide any code fragments as they are huge. Thanks in advance Vignesh.

« previous php.smarty.general (#13640) next »