<?php $username = $_POST['username']; echo "<?xml version='1.0' encoding='utf-8'?>"; echo "<root><result>$username</result></root>"; ?>