Arc Forumnew | comments | leaders | submitlogin
1 point by maximegb 5884 days ago | link | parent

PHP, no framework :

<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 ?