For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > November 2006 > formbuilder-quickform and querystring









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author formbuilder-quickform and querystring
Leo Márquez

2006-11-15, 6:58 pm

Hi!,

Perhaps you thik this simple qüestion is fool but I have wasted 1 hour
searching in the QF and FB docs.
I'm trying to set a formbuilder form in a web page that have querystring
variables.
For example: myform.php?which=4
The form is displayed correctly but when I submit it I lost the which
querystring variable.

I don't found the wayto mantain this variable in the querystring. If I
do a 'view html code' in my browser i see the form action value as only
'myform.php'

I have tried to set the action value in the form variable returned from
formbuilder:

$do =& DB_DataObject::factory('myTable');
$fb =& DB_DataObject_FormBuilder::create($do);
$frm=& $fb->getForm();
$frm->action="myform.php?which=".$_REQUEST['which'];

But It don't work. I think that the action property of QF can only be
setted with QF constructor.

I'm sure that there is a way to do that I want but i don't find it.

Any help would be apreciated.

Thanks.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com