Hi there.
Well i have this really annoying problem with one of my codes.
Im trying to make a webbased of a GE on runescape for fun really.
And this is the code i have gotten so fare:
<html>
<body>
<form action="buyitem.php" method="post">
Buying item : <input type="text" name="itemname" />
For amount : <input type="text" name="foramount" />
Cheatskape Username : <input type="text" name="username" />
<input type="submit" />
</form>
</body>
</html>
<?php
$content = $_POST['username']; Is buying the item: $_POST['itemname']; For the amount of: $_POST['foramount'];
$file = "ge.txt";
$Saved_File = fopen($file, 'w');
fwrite($Saved_File, $content);
fclose($Saved_File);
?>
And here is the error.
Parse error: syntax error, unexpected T_VARIABLE in /hosted/subs/ulmb.com/c/h/****/public_html/buyitem.php on line 2
Any help?