Advertisement
Guest User

moveturtle.php

a guest
May 18th, 2013
715
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. <html>
  2. <body>
  3. <form action="moveturtle.php" method="post">
  4. Movement Array: <input type="text" name="array">
  5. <input type="submit">
  6. </form>
  7. <br>
  8. <p>Example: 0,0,0,2,2,0,0,0</p>
  9. <ul>
  10. <li>0 - Forward</li>
  11. <li>1 - Back</li>
  12. <li>2 - Turn Left</li>
  13. <li>3 - Turn Right</li>
  14. <li>4 - Up</li>
  15. <li>5 - Down</li>
  16. <li>6 - Dig</li>
  17. </body>
  18. </html>
  19. <?php
  20. ob_start();
  21. $send = $_POST["array"];
  22. ob_end_flush();
  23. $fp = fopen("turtle.txt","w");
  24. fwrite($fp,$send);
  25. fclose($fp);
  26. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement