<br>

<BLOCKQUOTE style="PADDING-LEFT: 3px; BORDER-LEFT: blue 2px solid">multipart/form-data</BLOCKQUOTE>

<div>The content-type, right? That threw this error:</div>


<div>&nbsp;</div>


<div><TD class=form-label valign="middle" align="left"></TD> <TD style="BACKGROUND-COLOR: rgb(255,221,221)" valign="middle" align="left" colspan="3"></div>
<PRE>Compilation failed
xml.parsers.expat.ExpatError: unbound prefix: line 1, column 0</PRE>

<div></TD>TIA,<br>
Tony<br>
<br>
<br>
-----Original Message-----<br>
From: Tom Von Lahndorff &lt;tom@modscape.com&gt;<br>
To: Andreas Jung &lt;lists@zopyx.com&gt;<br>
Cc: tonylabarbara@aol.com; zope@zope.org<br>
Sent: Mon, 13 Aug 2007 4:15 pm<br>
Subject: Re: [Zope] Form-Through-Script<br>
<br>
</div>


<div id=AOLMsgPart_0_c2509b82-4e02-413c-b8e3-2c15a10012ef style="FONT-SIZE: 12px; MARGIN: 0px; COLOR: #000; FONT-FAMILY: Tahoma, Verdana, Arial, Sans-Serif; BACKGROUND-COLOR: #fff">On Aug 13, 2007, at 3:55 PM, Andreas Jung wrote:&nbsp;<br>
&nbsp;<br>
&gt;&nbsp;<br>
&gt;&nbsp;<br>
&gt; --On 13. August 2007 15:39:40 -0400 <A href="mailto:tonylabarbara@aol.com">tonylabarbara@aol.com</A> wrote:&nbsp;<br>
&gt;&nbsp;<br>
&gt;&gt;&nbsp;<br>
&gt;&gt; Hi;&nbsp;<br>
&gt;&gt; I have a form that I need to send to a script and then send off to &gt;&gt; a URL&nbsp;<br>
&gt;&gt; (PayPal). I need to process it through the script to renumber &gt;&gt; things for&nbsp;<br>
&gt;&gt; PP. How do I do this? I imagine I add an element to the PT like so:&nbsp;<br>
&gt;&gt;&nbsp;<br>
&gt;&gt; &lt;form action="renumberTheCart(here/CheckOutAfterEditStuff)" &gt;&gt; method="post"&gt;&nbsp;<br>
&gt;&gt;&nbsp;<br>
&gt;&gt; but I need to pass a parameter "doc", which, of course, is the &gt;&gt; document&nbsp;<br>
&gt;&gt; I'm submitting. So I tried this:&nbsp;<br>
&gt;&gt;&nbsp;<br>
&gt;&gt; &lt;form action="renumberTheCart(here/CheckOutAfterEditStuff)" &gt;&gt; method="post"&gt;&nbsp;<br>
&gt;&gt; &lt;p metal:use-macro="here/CheckOutAfterEditStuff/macros/main" /&gt;&nbsp;<br>
&gt;&nbsp;<br>
&gt; You might check out the basics about HTML forms first. The 'action' &gt; parameter is an URL and *not* some Python-like function call. You &gt; specify the destination URL inside the action attribute and pass &gt; the parameters as *hidden* form parameters to the URL - either &gt; using method GET or POST.&nbsp;<br>
&gt;&nbsp;<br>
&gt; You'll find more on forms in any HTML tutorial. Start from here:&nbsp;<br>
&gt;&nbsp;<br>
&gt; &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>
&gt;&nbsp;<br>
&nbsp;<br>
If you're uploading a file you'll want to also add enctype="multipart/form-data" to the form tag. I usually add it by default.&nbsp;<br>
&nbsp;<br>
<A href="http://www.w3.org/TR/html4/interact/forms.html#h-17.13.4" target=_blank>http://www.w3.org/TR/html4/interact/forms.html#h-17.13.4</A>&nbsp;<br>
"The content type "application/x-www-form-urlencoded" is inefficient for sending large quantities of binary data or text containing non-ASCII characters. The content type "multipart/form-data" should be used for submitting forms that contain files, non-ASCII data, and binary data."&nbsp;<br>
&nbsp;<br>
&gt;&nbsp;<br>
&gt; -aj&nbsp;<br>
&gt; _______________________________________________&nbsp;<br>
&gt; Zope maillist - <A href="mailto:Zope@zope.org">Zope@zope.org</A>&nbsp;<br>
&gt; <A href="http://mail.zope.org/mailman/listinfo/zope" target=_blank>http://mail.zope.org/mailman/listinfo/zope</A>&nbsp;<br>
&gt; ** No cross posts or HTML encoding! **&nbsp;<br>
&gt; (Related lists -&nbsp;<br>
&gt; <A href="http://mail.zope.org/mailman/listinfo/zope-announce" target=_blank>http://mail.zope.org/mailman/listinfo/zope-announce</A>&nbsp;<br>
&gt; <A href="http://mail.zope.org/mailman/listinfo/zope-dev" target=_blank>http://mail.zope.org/mailman/listinfo/zope-dev</A> )&nbsp;<br>
&nbsp;<br>
</div>
<!-- end of AOLMsgPart_0_c2509b82-4e02-413c-b8e3-2c15a10012ef --><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>