<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I think you want:<FONT class="Apple-style-span" face="Tahoma"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Tahoma"><BR class="khtml-block-placeholder"></FONT></DIV><DIV><FONT class="Apple-style-span" face="Tahoma">&lt;form action="renumberTheCart(here/CheckOutAfterEditStuff)" method="post" enctype="multipart/form-data"&gt;</FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">&lt;td&gt;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">&lt;form action=<A href="http://example.com/s/renumberTheCart?doc=docs">http://example.com/s/renumberTheCart</A>" method="post"&gt;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">&lt;input type="hidden" name="doc" value="" tal:attributes="value here/CheckOutAfterEditStuff" /&gt; </DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">&lt;p metal:use-macro="here/CheckOutAfterEditStuff/macros/main" /&gt; </DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">&lt;/td&gt;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><BR class="khtml-block-placeholder"></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">(my tal may be a bit off)</DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR><DIV><DIV>On Aug 13, 2007, at 4:09 PM, <A href="mailto:tonylabarbara@aol.com">tonylabarbara@aol.com</A> wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><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> &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; <BR> &lt;p metal:use-macro="here/CheckOutAfterEditStuff/macros/main" /&gt; <BR> &lt;/td&gt;<BR> <BR> TIA,<BR> Tony<BR> <BR> -----Original Message-----<BR> From: Andreas Jung &lt;<A href="mailto:lists@zopyx.com">lists@zopyx.com</A>&gt;<BR> To: <A href="mailto:tonylabarbara@aol.com">tonylabarbara@aol.com</A>; <A href="mailto:zope@zope.org">zope@zope.org</A><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> &gt; <BR> &gt; Hi; <BR> &gt; I have a form that I need to send to a script and then send off to a URL <BR> &gt; (PayPal). I need to process it through the script to renumber things for <BR> &gt; PP. How do I do this? I imagine I add an element to the PT like so: <BR> &gt; <BR> &gt; &lt;form action="renumberTheCart(here/CheckOutAfterEditStuff)" method="post"&gt; <BR> &gt; <BR> &gt; but I need to pass a parameter "doc", which, of course, is the document <BR> &gt; I'm submitting. So I tried this: <BR> &gt; <BR> &gt; &lt;form action="renumberTheCart(here/CheckOutAfterEditStuff)" method="post"&gt; <BR> &gt; &lt;p metal:use-macro="here/CheckOutAfterEditStuff/macros/main" /&gt; <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> &lt;<A href="http://www.w3schools.com/html/html_forms.asp" target="_blank">http://www.w3schools.com/html/html_forms.asp</A>&gt; <BR>  <BR> -aj <BR> </DIV> <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><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Zope maillist<SPAN class="Apple-converted-space">  </SPAN>-<SPAN class="Apple-converted-space">  </SPAN><A href="mailto:Zope@zope.org">Zope@zope.org</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://mail.zope.org/mailman/listinfo/zope">http://mail.zope.org/mailman/listinfo/zope</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">** <SPAN class="Apple-converted-space">  </SPAN>No cross posts or HTML encoding!<SPAN class="Apple-converted-space">  </SPAN>**</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">(Related lists -<SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-converted-space"> </SPAN><A href="http://mail.zope.org/mailman/listinfo/zope-announce">http://mail.zope.org/mailman/listinfo/zope-announce</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><SPAN class="Apple-converted-space"> </SPAN><A href="http://mail.zope.org/mailman/listinfo/zope-dev">http://mail.zope.org/mailman/listinfo/zope-dev</A> )</DIV> </BLOCKQUOTE></DIV><BR></BODY></HTML>