cvs: pear /HTML_QuickForm_Livesearch/example index.php
| From: | Giuseppe Dess� | Date: | Fri, 23 Jun 2006 10:11:34 +0000 |
| Subject: | cvs: pear /HTML_QuickForm_Livesearch/example index.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-40876@lists.php.net to get a copy of this message | ||
thesee Fri Jun 23 10:11:34 2006 UTC
Modified files:
/pear/HTML_QuickForm_Livesearch/example index.php
Log:
update index example to view and test freeze form
http://cvs.php.net/viewvc.cgi/pear/HTML_QuickForm_Livesearch/example/index.php?r1=1.3&r2=1.4&diff_format=u
Index: pear/HTML_QuickForm_Livesearch/example/index.php
diff -u pear/HTML_QuickForm_Livesearch/example/index.php:1.3
pear/HTML_QuickForm_Livesearch/example/index.php:1.4
--- pear/HTML_QuickForm_Livesearch/example/index.php:1.3 Thu Apr 6 08:53:44 2006
+++ pear/HTML_QuickForm_Livesearch/example/index.php Fri Jun 23 10:11:34 2006
@@ -1,5 +1,5 @@
<?php
-// $Id: index.php,v 1.3 2006/04/06 08:53:44 thesee Exp $
+// $Id: index.php,v 1.4 2006/06/23 10:11:34 thesee Exp $
require_once 'HTML/QuickForm.php';
require_once 'HTML/QuickForm/livesearch_select.php';
require_once 'myfunction.php';
@@ -37,9 +37,8 @@
$form->addRule('required_field', 'Data required', 'required',
null, 'server');
$form->addRule('Nome', 'Data required', 'required', null,
'server');
if ($form->validate()) {
- echo"<pre>";print_r($_POST);echo"</pre>";die();
- echo"<pre>";print_r('REDIRECT(stopped obviously) TO: http://www.example.com/'.$form->exportValue('Nome'));echo"</pre>";die();
- header('Location: http://www.example.com/'.$form->exportValue('Nome'));
+ echo"<pre>";print_r($_POST);echo"</pre>";
+ $form->freeze();
}
// Output the form
?>