Hi,
What you're looking for is the CMRL <engine> tag. Here's how to use it:
In your index.cmrl file, put:
<?xml version="1.0" encoding="UTF-8" ?>
<cmrl xmlns:dotgo="http://dotgo.com/cmrl/1.0">
<match pattern="*">
<message>
<content>Reply with your user name</content>
<input name="name">
<engine href="http://yourdomain/dotgo.php" />
</input>
</message>
</match>
</cmrl>
This means that after the user replies to the <input>, the result of the input will be POSTed as the value of the variable "name" to the URL at "http://yourdomain/dotgo.php" (along with a bunch of other variables having to do with the text message). That URL just has to return any "terminating node", e.g. <message>, <block>, <engine>, etc., which will be sent to the user.
So now create a PHP script at http://yourdomain/dotgo.php that contains something like the following:
<?php
$name = $_REQUEST['name'];
$message = <<<XML
<block>
<set name="user_name">$name</set>
<message><content>Welcome $name!</content></message>
</block>
XML;
print $message;
?>
This example also shows you how to store the $name variable into the user's session (using the <set> tag), so that the next time the same user sends any text message to your domain that results in an <engine>, you'll be able to retrieve the value from the $_REQUEST['user_name'] variable.
For more info check out the documents "How to Implement DOTGO Engines" and "Session variables in CMRL" at http://dotgo.com/support/documentation