How to get the value of form data in Page Template itself?
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 regards saravanan A ___________________________________________________ Impress your clients! Send mail from me @ mycompany.com . Just Rs.1499/year. Click http://www.rediffmailpro.com to know more.
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
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>
And if you want it in the input element itself, you can do <input type="text" name="whatever" value="something like this" tal:attributes="value request/whatever | default" /> which reads as "...and replace the attribute 'value' with the contents of the request parameter 'whatever' or leave the parameter alone if there is no such parameter." --jcc
participants (3)
-
J Cameron Cooper -
saravanan annamalai -
Seb Potter