Posted - October 10 2005 : 14:28:40
| It'll depend on the gateway that's being used; some gateways will be able to cater for it, while others will have problems (generally it depends on how the arguments are passed across; as form/field postings, or as url arguments) and how they're processed by the gateway asp page on your local site. Some gateway interfaces automatically translate/encode things to cater for it, and some don't.
What you could do is just wrap the field in the gateway asp file around a replace function. For example, you might change from:
in your gateway asp file.
However, note that you can only use Replace on non-null values, otherwise you'll get a vbscript error, so if the value is optional, then you're better off with something like this:
if (objrs("itemname")<>"" and IsNull(objrs("itemname"))=false) then
If you want to apply that logic all over the place, then you can create a central function, added to, say, shop$db.asp:
if (arg_in_value="" or IsNull(arg_in_value)=true) then
then use that in your gateway asp file when you create the values, such as:
Edited by - devshb on October 10 2005 14:37:23