<html>
<?php
if ($_GET['data'])
{
$id = uniqid().'.html';
file_put_contents($id,"You said : ".$_GET['data']);
echo ''.$id.'';
}else
{ ?>
<form method="get">
<input type="text" name="data">
<input type="submit">
</form>
<?php } ?></html>
Can we consider this a RESTful approach ?