multipart/form-data

The content-type, right? That threw this error:



 

Compilation failed
xml.parsers.expat.ExpatError: unbound prefix: line 1, column 0

TIA,
Tony


-----Original Message-----
From: Tom Von Lahndorff <[EMAIL PROTECTED]>
To: Andreas Jung <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED]; zope@zope.org
Sent: Mon, 13 Aug 2007 4:15 pm
Subject: Re: [Zope] Form-Through-Script



On Aug 13, 2007, at 3:55 PM, Andreas Jung wrote:?
?
>?
>?
> --On 13. August 2007 15:39:40 -0400 [EMAIL PROTECTED] wrote:?
>?
>>?
>> Hi;?
>> I have a form that I need to send to a script and then send off to >> a URL?
>> (PayPal). I need to process it through the script to renumber >> things for?
>> PP. How do I do this? I imagine I add an element to the PT like so:?
>>?
>> <form action="renumberTheCart(here/CheckOutAfterEditStuff)" >> 
>> method="post">?
>>?
>> but I need to pass a parameter "doc", which, of course, is the >> document?
>> I'm submitting. So I tried this:?
>>?
>> <form action="renumberTheCart(here/CheckOutAfterEditStuff)" >> 
>> method="post">?
>> <p metal:use-macro="here/CheckOutAfterEditStuff/macros/main" />?
>?
> 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.?
>?
> You'll find more on forms in any HTML tutorial. Start from here:?
>?
> <http://www.w3schools.com/html/html_forms.asp>?
>?
?
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.?
?
http://www.w3.org/TR/html4/interact/forms.html#h-17.13.4?
"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."?
?
>?
> -aj?
> _______________________________________________?
> Zope maillist - [EMAIL PROTECTED]
> http://mail.zope.org/mailman/listinfo/zope?
> ** No cross posts or HTML encoding! **?
> (Related lists -?
> http://mail.zope.org/mailman/listinfo/zope-announce?
> http://mail.zope.org/mailman/listinfo/zope-dev )?
?


________________________________________________________________________
AOL now offers free email to everyone.  Find out more about what's free from 
AOL at AOL.com.
_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to