<div>No, it should work the way it is...that is a URL I passed. I changed it to an absolute URL just to double-check, and got basically the same error:</div>
<div> </div>
<div><STRONG>Invalid request</STRONG></div>
The parameter, <EM>doc</EM>, was omitted from the request.
<div><br>
How do I pass the parameter, which in my case is quite long and stashed neatly away in a PT macro?<br>
<br>
<td tal:define="docs here/CheckOutAfterEditStuff"><br>
<form action=<A href="http://example.com/s/renumberTheCart?doc=docs">http://example.com/s/renumberTheCart?doc=docs</A>" method="post"> <br>
<p metal:use-macro="here/CheckOutAfterEditStuff/macros/main" /> <br>
</td><br>
<br>
TIA,<br>
Tony<br>
<br>
-----Original Message-----<br>
From: Andreas Jung <lists@zopyx.com><br>
To: tonylabarbara@aol.com; zope@zope.org<br>
Sent: Mon, 13 Aug 2007 3:55 pm<br>
Subject: Re: [Zope] Form-Through-Script<br>
<br>
</div>
<div id=AOLMsgPart_1_58539741-2651-4782-b536-458fec32b772 style="FONT-SIZE: 12px; MARGIN: 0px; COLOR: #000; FONT-FAMILY: Tahoma, Verdana, Arial, Sans-Serif; BACKGROUND-COLOR: #fff"> <br>
--On 13. August 2007 15:39:40 -0400 <A href="mailto:tonylabarbara@aol.com">tonylabarbara@aol.com</A> wrote: <br>
<br>
> <br>
> Hi; <br>
> I have a form that I need to send to a script and then send off to a URL <br>
> (PayPal). I need to process it through the script to renumber things for <br>
> PP. How do I do this? I imagine I add an element to the PT like so: <br>
> <br>
> <form action="renumberTheCart(here/CheckOutAfterEditStuff)" method="post"> <br>
> <br>
> but I need to pass a parameter "doc", which, of course, is the document <br>
> I'm submitting. So I tried this: <br>
> <br>
> <form action="renumberTheCart(here/CheckOutAfterEditStuff)" method="post"> <br>
> <p metal:use-macro="here/CheckOutAfterEditStuff/macros/main" /> <br>
<br>
You might check out the basics about HTML forms first. The 'action' parameter is an URL and *not* some Python-like function call. You specify the destination URL inside the action attribute and pass the parameters as *hidden* form parameters to the URL - either using method GET or POST. <br>
<br>
You'll find more on forms in any HTML tutorial. Start from here: <br>
<br>
<<A href="http://www.w3schools.com/html/html_forms.asp" target=_blank>http://www.w3schools.com/html/html_forms.asp</A>> <br>
<br>
-aj <br>
</div>
<!-- end of AOLMsgPart_1_58539741-2651-4782-b536-458fec32b772 --><div class="AOLPromoFooter">
<hr style="margin-top:10px;" />
AOL now offers free email to everyone. Find out more about what's free from AOL at <a href="http://www.aol.com?ncid=AOLAOF00020000000437" target="_blank"><b>AOL.com</b></a>.<br />
</div>