Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

sending form results to a file to use the file include latter how pls?

$
0
0

hi I have been trying to get a way of building a site for a online gaming community where they can post player points to a form so that I can make them be displayed in a list on a different page after editing

 

simply the group director gets the edited points from excel and pastes them into my html form then using file include in my page the results display in a page for viewing

this is what I got so far but now I am getting stupid error messages

 

<?php $player_name = $_POST['player_name'];$points = $_POST['points'];
$fp = fopen(”top100stats.txt”,);
fclose($fp);echo “<h1>You data has been saved in a text file!</h1>”;
?>

 

this is the error I get

Parse error: syntax error, unexpected ')' in /home/u159756103/public_html/top100stats.php on line 2

 

any help would be great as I was trying to do this using MySQL however after making my table I could not get php to write thew form data into it hahaha as you can see I am very new to php and mysql


Viewing all articles
Browse latest Browse all 13200

Trending Articles