Re: How to pass/access form data with Quickform???

From: Date: Thu, 29 May 2003 19:35:00 +0000
Subject: Re: How to pass/access form data with Quickform???
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-5685@lists.php.net to get a copy of this message
Hi! Jochen Schneider wrote:
I'm sorry, but I have some problems how to use Quickform. I've found the examples, but a real tutorial or doc would be nicer...
The 'real doc' is being worked upon. There is some stuff in peardoc CVS already. If you do not want to checkout the docs from CVS and build them from DocBook XML yourself, you can check some sites that have more or less current builds, for example http://www.appelsiini.net/~tuupola/php/peardoc2/package.html.html#package.html.html-quickform It is difficult to predict when the manual on official PEAR site will be updated, though. It took 3 months the last time.
I just want to create a 'normal' form, validating some fields and passing the data to another php-file. How can I do that? Right now I can instatiate a new Form and give the argument where to pass the data! Thats ok, but then validating doesnt work!
That's understandable: if you define validation rules on *one* page they will probably not appear on *other* page by magic. QuickForm is designed to have the form definition and validation in *one* script, that generally makes life easier.
And how can I access the data on the second page? For example: Getting the name on teh second page: I do: Var_dump($name); I get an result, but like this array(2) { ["last"]=> string(4) "Schneider" ["first"]=> string(7) "Jochen" } I just want to get the value and not how long this string is!!! Well, if you don't know what var_dump() is, then you probably should read some tutorials on PHP before requesting tutorials on QuickForm. ;]


« previous php.pear.general (#5685) next »