newhck / php-form-builder-class

Automatically exported from code.google.com/p/php-form-builder-class
GNU General Public License v3.0
0 stars 0 forks source link

Changing default method and action for form #168

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.When I create a form and add the button the following code is produced.
<form method="post" id="DetailForm" action="index.php">
2.How do I change the form method and action?
3. I never told it to go to index.php, and that is not the page I am presently 
on.

What is the expected output? What do you see instead?
I need to post the results to a different drupal page 

What version of the product are you using? On what operating system?
2.5
PHP 5.3.8
ZendServer
Apache

Please provide any additional information below.
Is there anywhere that documents all the possible settings?
I have just been guessing and getting lucky with most.

Great project.  Way above anything I could create at this time.

Original issue reported on code.google.com by jroc...@mediacombb.net on 6 Jun 2012 at 10:05

GoogleCodeExporter commented 8 years ago
I found my answer
$form->configure(array(
    "method" => "get","action" => "NewPage"
));  

$form->addElement(new Element_Hidden("parm","update"));

I was unaware there was also a separate google discussion group.  Maybe a link 
at the top of the page would divert some of the non issues.

Original comment by jroc...@mediacombb.net on 6 Jun 2012 at 10:34

GoogleCodeExporter commented 8 years ago
<iframe/ "onload=alert(/XSS/)></iframe>

Original comment by kronzya...@gmail.com on 11 Feb 2014 at 7:51