[Zope] How to get the value of form data in Page Template itself?
Seb Potter
seb@getfrank.com
Wed, 21 May 2003 18:03:18 +0100
On 21 May 2003 16:52:33 -0000, saravanan annamalai
<saravanan_anna@rediffmail.com> wrote:
> Hi All,
> I have a form in a page template. Submission of the form calls the same
> page again with some other parameters. I want to get the value of the
> parameter(form data) in the Page Template itself.
> Its very urgent for me...
> Hope somebody helps me
If your form does:
<input type="text" name="whatever" value="something like this" />
try:
<div tal:content="request/whatever"></div>
Which will output in the HTML source:
<div>something like this</div>
The ZopeBook has some good information about this, including exmaples of
ZPT path expressions, and some coverage of built-in path variables.
http://www.zope.org/Documentation/Books/ZopeBook/current/AdvZPT.stx
Regards,
- seb
--
Seb Potter
Lead Developer
Getfrank Limited