|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Unable to get QueryString valueHi Guys I need to retrieve a querystring value from the URL with the Order ID in it. I am have some trouble trying to get it though. An example of the URL is as follows: http://localhost:8080/GetPaid%20Test/@@getpaid-vcs-redirect?orderid=342226233 The code I use to get the querystring value looks as follows: http://paste.plone.org/28109 (See highlighted lines) For some reason though, the code returns "None". Any idea what I could be doing wrong? Thanks Hannes PS. Thanks to everyone that has been helping thus far. :) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "getpaid-dev" group. To post to this group, send email to getpaid-dev@... To unsubscribe from this group, send email to getpaid-dev+unsubscribe@... For more options, visit this group at http://groups.google.com/group/getpaid-dev?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Unable to get QueryString valueHello,
Why no use: form = self.request.form value = form.get('orderid') Taito 2009/5/22 hannesc <hannesc@...>
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "getpaid-dev" group. To post to this group, send email to getpaid-dev@... To unsubscribe from this group, send email to getpaid-dev+unsubscribe@... For more options, visit this group at http://groups.google.com/group/getpaid-dev?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Unable to get QueryString valueThe code I use to get the querystring value looks as follows: if the HTTP method is HTTP POST Zope ignores query string parameters and uses POST parameters only. I am not sure if this is according to HTTP spec. As a workaround 1) Put query string parameters to hidden <input> when you render the form, so they will go along POST 2) Put query string parameters into session -Mikko --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "getpaid-dev" group. To post to this group, send email to getpaid-dev@... To unsubscribe from this group, send email to getpaid-dev+unsubscribe@... For more options, visit this group at http://groups.google.com/group/getpaid-dev?hl=en -~----------~----~----~----~------~----~------~--~--- |
| Free embeddable forum powered by Nabble | Forum Help |