HTML_QuickForm
| From: | akhan | Date: | Sun, 26 Feb 2006 17:01:02 +0000 |
| Subject: | HTML_QuickForm | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-23130@lists.php.net to get a copy of this message | ||
When I try to post to another page test.html, HTML_QuickForm does not seem to
validate the form.
<?php
require_once("HTML/QuickForm.php");
// Create new instance - Form
$Form = new HTML_QuickForm("Form1", "POST", 'test.html');
$Form->addElement("Text", "Name1", "Text1", array("size"
=> "30"));
$Form->addElement("Submit", "Button", "A");
$AForm->addRule("Name1", 'Please Enter', 'required');
if ($Form->validate())
{
$Form->submitValues();
}
// Display Forms
$Form->display();
--
View this message in context: http://www.nabble.com/HTML_QuickForm-t1189483.html#a3134145
Sent from the Pear - General forum at Nabble.com.