<?php
header("content-type: text/xml");
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?><Response>\n";

# If the stringlength of the name is 0 then give them a ridiculous placeholder name and ask them what their name is.
if(!strlen($name)) {
$name = "zzyzzzqqqw";
?>
<Message>What is your name?</Message>

<?php
}
# if the name is the ridiculous placeholder, use their input as their name.
else if($name == "zzyzzzqqqw") {
$response = $name;
}

# if the name is something other than the ridiculous placeholder, send them to the story file.
else {
?>
<Redirect>../named.php</Redirect>
</Reponse>
<?php
}
?>

