On Clientside having an orderform, where the user can select a part after giving some values for a Query(ordernumber, partname,...). the values are send to the dtml-Dcument, where a SQL-Query puts the Data to an array. First writing a cookie, then updating a layer.src="dtml-Document Name", in the end display the array-data. This works fine, until the cookie value has whitespaces(' '). Writing a cookie "value="a b c";expires...", on Clientside(the mainform) the REQUEST.cookie is korrekt, but on the serverside(the layer.src) the REQUEST shows only cookies: value="a" Why is the value truncated? Is there another way to get dynamic Data in a html-form? thanks Axel
Axel Missbach wrote:
On Clientside having an orderform, where the user can select a part after giving some values for a Query(ordernumber, partname,...). the values are send to the dtml-Dcument, where a SQL-Query puts the Data to an array. First writing a cookie, then updating a layer.src="dtml-Document Name", in the end display the array-data. This works fine, until the cookie value has whitespaces()
Is there another way to get dynamic Data in a html-form?
Hi, you should use SESSIONs for this problem... Have a look at the ZopeBook and ZopeHelp. .mj -- German Zope User Group http://www.dzug.org/
Axel Missbach wrote at 2003-1-5 13:08 +0100:
On Clientside having an orderform, where the user can select a part after giving some values for a Query(ordernumber, partname,...). the values are send to the dtml-Dcument, where a SQL-Query puts the Data to an array. First writing a cookie, then updating a layer.src="dtml-Document Name", in the end display the array-data. This works fine, until the cookie value has whitespaces(' ').
Writing a cookie "value="a b c";expires...", on Clientside(the mainform) the REQUEST.cookie is korrekt, but on the serverside(the layer.src) the REQUEST shows only cookies: value="a"
Why is the value truncated? Did you read the cookie specification?
Some characters are not allowed in cookies... You can encode your cookies (not standardized by the specification). Dieter
participants (3)
-
Axel.Missbach@t-online.de -
Dieter Maurer -
Maik Jablonski