<div>Well it didn't like that, either:</div>


<div>&nbsp;</div>


<div><STRONG>Invalid request</STRONG></div>
The parameter, <EM>doc</EM>, was omitted from the request.

<div><br>
again. But look here:<br>
<br>
&lt;td tal:define="docs here/CheckOutAfterEditStuff"&gt;</div>


<div>&lt;form action="renumberTheCart(docs)" method="post" enctype="multipart/form-data"&gt;<br>
&lt;p metal:use-macro="here/CheckOutAfterEditStuff/macros/main" /&gt;<br>
<br>
See, I have a definition of "docs", but it's not pointing to a "use-macro" widget. Must be the problem, but how do I do that?<br>
TIA,<br>
Tony<br>
<br>
-----Original Message-----<br>
From: Tom Von Lahndorff &lt;tom@modscape.com&gt;<br>
To: tonylabarbara@aol.com<br>
Cc: lists@zopyx.com; zope@zope.org<br>
Sent: Mon, 13 Aug 2007 4:20 pm<br>
Subject: Re: [Zope] Form-Through-Script<br>
<br>
</div>


<div id=AOLMsgPart_2_60ebb23f-8713-4859-a078-36254e5b6710>

<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: 0px">&lt;td&gt;</div>


<div style="MARGIN: 0px">&lt;form action=<A href="http://example.com/s/renumberTheCart?doc=docs" target=_blank>http://example.com/s/renumberTheCart</A>" method="post"&gt;</div>


<div style="MARGIN: 0px">&lt;input type="hidden" name="doc" value="" tal:attributes="value here/CheckOutAfterEditStuff" /&gt;&nbsp;</div>


<div style="MARGIN: 0px">&lt;p metal:use-macro="here/CheckOutAfterEditStuff/macros/main" /&gt;&nbsp;</div>


<div style="MARGIN: 0px">&lt;/td&gt;</div>


<div style="MARGIN: 0px"><BR class=khtml-block-placeholder></div>


<div style="MARGIN: 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>&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" target=_blank>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;<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">&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>


<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: 0px">_______________________________________________</div>


<div style="MARGIN: 0px">Zope maillist<SPAN class=Apple-converted-space>&nbsp; </SPAN>-<SPAN class=Apple-converted-space>&nbsp; </SPAN><A href="mailto:Zope@zope.org">Zope@zope.org</A></div>


<div style="MARGIN: 0px"><A href="http://mail.zope.org/mailman/listinfo/zope" target=_blank>http://mail.zope.org/mailman/listinfo/zope</A></div>


<div style="MARGIN: 0px">** <SPAN class=Apple-converted-space>&nbsp; </SPAN>No cross posts or HTML encoding!<SPAN class=Apple-converted-space>&nbsp; </SPAN>**</div>


<div style="MARGIN: 0px">(Related lists -<SPAN class=Apple-converted-space>&nbsp;</SPAN></div>


<div style="MARGIN: 0px"><SPAN class=Apple-converted-space>&nbsp;</SPAN><A href="http://mail.zope.org/mailman/listinfo/zope-announce" target=_blank>http://mail.zope.org/mailman/listinfo/zope-announce</A></div>


<div style="MARGIN: 0px"><SPAN class=Apple-converted-space>&nbsp;</SPAN><A href="http://mail.zope.org/mailman/listinfo/zope-dev" target=_blank>http://mail.zope.org/mailman/listinfo/zope-dev</A> )</div>
</BLOCKQUOTE></div>
<br>
= </div>
<!-- end of AOLMsgPart_2_60ebb23f-8713-4859-a078-36254e5b6710 -->