<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>&nbsp;</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>
&lt;td tal:define="docs here/CheckOutAfterEditStuff"&gt;<br>
&lt;form action=<A href="http://example.com/s/renumberTheCart?doc=docs">http://example.com/s/renumberTheCart?doc=docs</A>" method="post"&gt;&nbsp;<br>
&lt;p metal:use-macro="here/CheckOutAfterEditStuff/macros/main" /&gt;&nbsp;<br>
&lt;/td&gt;<br>
<br>
TIA,<br>
Tony<br>
<br>
-----Original Message-----<br>
From: Andreas Jung &lt;lists@zopyx.com&gt;<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">&nbsp;<br>
--On 13. August 2007 15:39:40 -0400 <A href="mailto:tonylabarbara@aol.com">tonylabarbara@aol.com</A> wrote:&nbsp;<br>
&nbsp;<br>
&gt;&nbsp;<br>
&gt; Hi;&nbsp;<br>
&gt; I have a form that I need to send to a script and then send off to a URL&nbsp;<br>
&gt; (PayPal). I need to process it through the script to renumber things for&nbsp;<br>
&gt; PP. How do I do this? I imagine I add an element to the PT like so:&nbsp;<br>
&gt;&nbsp;<br>
&gt; &lt;form action="renumberTheCart(here/CheckOutAfterEditStuff)" method="post"&gt;&nbsp;<br>
&gt;&nbsp;<br>
&gt; but I need to pass a parameter "doc", which, of course, is the document&nbsp;<br>
&gt; I'm submitting. So I tried this:&nbsp;<br>
&gt;&nbsp;<br>
&gt; &lt;form action="renumberTheCart(here/CheckOutAfterEditStuff)" method="post"&gt;&nbsp;<br>
&gt; &lt;p metal:use-macro="here/CheckOutAfterEditStuff/macros/main" /&gt;&nbsp;<br>
&nbsp;<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.&nbsp;<br>
&nbsp;<br>
You'll find more on forms in any HTML tutorial. Start from here:&nbsp;<br>
&nbsp;<br>
&lt;<A href="http://www.w3schools.com/html/html_forms.asp" target=_blank>http://www.w3schools.com/html/html_forms.asp</A>&gt;&nbsp;<br>
&nbsp;<br>
-aj&nbsp;<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>