Hi
i have this php code:
$departure = $_POST['departureloc'];
$mysoapmsg = $client->serializeEnvelope('<function xmlns="http://function.com/">
<inUID>username</inUID>
<inPWD>password</inPWD>
<inDeparture>$departure</inDeparture>
</function>','',array(),'document', 'literal');
|
suffice to say, ive changed a few fields for the purpose of the post.
Now, it all works fine if I have a static entry in the <inDeparture> field. However, when I put a variable into it, it doesn't work for love nor money.
Does anyone know why this happens and/or if there is a way to make it work?
Thanks in advance.
EDIT
Fixed, I had to continue the var, with ' . $departure . '