S
scopefragger
Guest
The code currently used is
<?php
//Save to all file
$myname=$handle = fopen("testFile.php", "a");
fwrite($handle, '<br>');
fwrite($handle, $_POST['name']);
fwrite($handle, ' | ');
fwrite($handle, $_POST['item']);
fwrite($handle, ' X ');
fwrite($handle, $_POST['number']);
fwrite($handle, ' | ');
fwrite($handle, $_POST['price']);
fwrite($handle, ' | ');
fwrite($handle, $_POST['ign']);
fwrite($handle, ' | ');
fwrite($handle, $_POST['server']);
fwrite($handle, ' | ');
fwrite($handle, $_POST['time']);
fclose($handle);;
$fh = fopen("testFile.php", 'a') or die("Can't open $file for writing: $php_errormsg");
if (-1 == fwrite($fh, $myname)) { die("Can't write to $file:
$php_errormsg"); }
fclose($fh) or die("Can't close $file: $php_errormsg");
?> <b><font color="#009900">
Item has been Placed on the marketplace listings !</font><br />
Please select the type of item you wish to sell<br /><br />
<font color="#FF0000">
Equipment - Currently univalable<br />
Ect - Currently univalable<br />
Pet - Currently univalable<br />
Cards - Currently univalable<br />
New - Currently univalable<br /></font>
<a href="http://tricksterspritearchive.net84.net/sell.php">Compound item</a><br /></b>
I need the code to set the file it saves to as a random number and then the value of 'item' ( as used in the code on line 8 ).
an example of a wanted outcome would be 500-Apple
<?php
//Save to all file
$myname=$handle = fopen("testFile.php", "a");
fwrite($handle, '<br>');
fwrite($handle, $_POST['name']);
fwrite($handle, ' | ');
fwrite($handle, $_POST['item']);
fwrite($handle, ' X ');
fwrite($handle, $_POST['number']);
fwrite($handle, ' | ');
fwrite($handle, $_POST['price']);
fwrite($handle, ' | ');
fwrite($handle, $_POST['ign']);
fwrite($handle, ' | ');
fwrite($handle, $_POST['server']);
fwrite($handle, ' | ');
fwrite($handle, $_POST['time']);
fclose($handle);;
$fh = fopen("testFile.php", 'a') or die("Can't open $file for writing: $php_errormsg");
if (-1 == fwrite($fh, $myname)) { die("Can't write to $file:
$php_errormsg"); }
fclose($fh) or die("Can't close $file: $php_errormsg");
?> <b><font color="#009900">
Item has been Placed on the marketplace listings !</font><br />
Please select the type of item you wish to sell<br /><br />
<font color="#FF0000">
Equipment - Currently univalable<br />
Ect - Currently univalable<br />
Pet - Currently univalable<br />
Cards - Currently univalable<br />
New - Currently univalable<br /></font>
<a href="http://tricksterspritearchive.net84.net/sell.php">Compound item</a><br /></b>
I need the code to set the file it saves to as a random number and then the value of 'item' ( as used in the code on line 8 ).
an example of a wanted outcome would be 500-Apple