
<?php
$number = $_POST['From'];
$body = $_POST['Body'];

header('Content-Type: text/xml');
?>

//if then update
if($body == YES){
    ?>
    <Message>
	Thank you for requesting a response! Please reply with an email address or phone number we can respond to. 
    </Message>
    <?php
}

<Response>
    <Message>
        Hello <?php echo $number ?>.
        You said <?php echo $body ?>
    </Message>
</Response>