yes like DJ SAYS
- EDIT SOZ FOR DUBBLE POST
Quote:
Originally Posted by Invent http://www.habboxforum.com/images/buttons/viewpost.gif
If you want to make a single page for each message just do this (I coded this in 2mins so it's rubbish, lol).
Quote:
Originally Posted by Invent http://www.habboxforum.com/images/buttons/viewpost.gif
Wahetver.php:
PHP Code:
<?php
if( $_GET[ "action" ] == "send" && $_POST[ "username" ] && $_POST[ "msg" ] ) {
$username = $_POST[ "username" ];
$message = $_POST[ "message" ];
$filename = rand( 0, 999999 );
$fopen = @fopen( "". $rand .".txt", "x+t" );
@fwrite( $fopen, "{$username}: {$message}" ) or die( 'Could not write data' );
@flclose( $fopen );
echo( "Message Saved, click <a href=\"". $rand.".txt\" target=\"_self\">here</a> to see your message!" );
}
else
{
?>
<form action="?action=send" method="post">
Username:<br />
<input type="text" name="username" />
<br /><br />
Messsge:<br />
<textarea name="msg"></textarea>
<br /><br />
<input type="submit" name="submit" value="Post" />
</form>
<?php
}
?>
It lets the user input their chosen Username & Message and then saves it to a file with a random name (numerical name).
- I uploaded it to my SERVER & every time i do a message it goes "Could not write data"
__________________