Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <body>
- <form action="moveturtle.php" method="post">
- Movement Array: <input type="text" name="array">
- <input type="submit">
- </form>
- <br>
- <p>Example: 0,0,0,2,2,0,0,0</p>
- <ul>
- <li>0 - Forward</li>
- <li>1 - Back</li>
- <li>2 - Turn Left</li>
- <li>3 - Turn Right</li>
- <li>4 - Up</li>
- <li>5 - Down</li>
- <li>6 - Dig</li>
- </body>
- </html>
- <?php
- ob_start();
- $send = $_POST["array"];
- ob_end_flush();
- $fp = fopen("turtle.txt","w");
- fwrite($fp,$send);
- fclose($fp);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement