i was thinking the same thing, but before even going that far... is the < necessary or is it just there for looks?
are you using the < as part of a sql statement on the back end? basically what i'm getting at -- does the < need to be in the text or can you assume that if someone passes in text in whichever field that what they really want to do is a comparison of less than something else On 9/5/07, Matt Foster <[EMAIL PROTECTED]> wrote: > > > Hey Benjamin/Martijin Teigeler, > > I think your problem lies within having ampersands within the > values, as this character is the delimiter from one key value pair and > the next its going to always have huge problems in a query string. > Try switching that to something else and I think you'll have much > better luck with data transmission. > > Cheers, > Matt > > > On Sep 5, 5:47 am, Benjamin <[EMAIL PROTECTED]> wrote: > > Hi all, > > > > Just busted my head open on a problem with prototype Form.serialize. > > > > Case: > > > > An HTML form contains following form fields; > > > > <input name="isdn_invoice_lines.date" value="< 01/03/2007" > > type="text"> > > <input name="isdn_invoice_lines.date_time" value="< 01/03/2007" > > type="text"> > > <input name="isdn_invoice_lines.date_time" value="< 30/03/2007" > > type="text"> > > > > On submission the prototype Form.serialze is used to serialize before > > posting. > > > > Problem: > > > > When input types contain multiple values (multiple fields with the > > same name for instance) with special characters in them (like > or > > <) strange things start to happen. > > > > When the input is single value with special characters all is fine. > > > > Example serialized output: > > > > isdn_invoice_lines.date=%3C%2001%2F03%2F2007& > > isdn_invoice_lines.date_time=%253C%252001%252F03%252F2007& > > isdn_invoice_lines.date_time=%253C%252001%252F03%252F2007 > > > > I put in some linebreak for readabillity, this string is (ofcourse) > > one. > > > > The first field is encoded correctly. The other two fields have an > > extra '25' is added inside each encoded character, with the result > > that the server does not recognise it as url encoded and leaves it > > untouched. Further processing obviously results in various problems. > > > > My question now is if anyone bumped into this problem before and/or > > has found a solution for it. > > > > Thnx in advance. > > > > Regards, > > > > Martijn Teigeler > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
