Okay so I got a lot of work done last night and it is going well so fare, trying to connect this cart to an API. so I have $ipaddress = urlencode($_SERVER['REMOTE_ADDR']); Code (markup): it shows in the debug report 127.0.0.1 but it then says it is wrong? &ipAddress=127.0.0.1resource(4) of type (stream) errorFound=1&responseCode=321&errorMessage=Invalid+IP+address+of+%28Malformed+IP+Address%29+found+ Code (markup):
REMOTE_ADDR is the IP address of the user. Is that what you want? (It looks like you're testing it locally.)
Uhm, can we see the code AFTER that. I don't think the code you posted is what's generating that error... No, that code does not and could not generate a type mismatch error. I think it's something AFTER it. (and this is why snippets are USELESS for diagnosing bugs). Yeah, the code you posted has absolutely NOTHING to do with that error -- we need to see the REST of it!