HTML_QuickForm passing varialbles to another page after validation
| From: | akhan | Date: | Mon, 27 Feb 2006 17:38:35 +0000 |
| Subject: | HTML_QuickForm passing varialbles to another page after validation | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-23142@lists.php.net to get a copy of this message | ||
Hello I am trying to Pass content of the form to another page
after validating. I cannot seem to pass the values to the page after
validation.
I am new to php, so I will apologize for my ignorance.
<?php
require_once("HTML/QuickForm.php");
// Create new instance - Form $Form = new HTML_QuickForm("Form", "get");
$Form->addElement("Text", "Name", "Text1", array("size"
=> "30"));
$Form->addElement("Submit", "Button", "Go");
$Form->addRule("Name", 'Please Enter', 'required');
if ($Form->validate())
{
header("Location: someaddress/test.php");
}
$Form->display();
?>
Thank you
Atif K
--
View this message in context: http://www.nabble.com/HTML_QuickForm-passing-varialbles-to-another-page-after-validation-t1194478.html#a3149445
Sent from the Pear - General forum at Nabble.com.