http://qs321.pair.com?node_id=921436


in reply to Remote web form post

Where do you define and fill $res?

That variable is never defined or filled and therefore is undefined.

Maybe you should consider to use strict and warnings.

Addendum:

I had another look at your script and think, there are more flaws than the one I previously mentioned.