Hi,
I have a simple little script to send an email from Flash. The problem is that when I print the variable 'formSent' back to Flash it contains excess whitespace at the end (in this case 3 spaces). I can trim it out in the Flash movie, but I'd rather not have to. Anyone know a fool proof way to avoid this. Heres the script:
<?php
//Send Mail or send an error message
mail($recipient, $subject, $body, "From: $MailFrom") or die ("formSent=false");
// tell Flash you're done
print("formSent=done");
?>