Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //Capture data from $_POST array
- $title = $_POST['Title'];
- $comments = $_POST['Comments'];
- $image = $_POST['Image'];
- //Make one big string in a format Flash understand
- $toSave = "Title=$title&Comments=$comments&Image=.$image";
- //Open a file in write mode
- $fp = fopen("informacion.txt", "w");
- if (fwrite($fp, $toSave)) {
- echo "writing=Ok&";
- } else {
- echo "writing=Error&";
- }
- fclose($fp);
- ?>
Add Comment
Please, Sign In to add comment