For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > February 2006 > HTML_QuickForm not passing varialbles to another page after









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 HTML_QuickForm not passing varialbles to another page after
akhan

2006-02-27, 7:00 pm


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_QuickFor...3.html#a3149459
Sent from the Pear - General forum at Nabble.com.
Sponsored Links







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

Copyright 2008 codecomments.com