I'm having issues with my PHP, in that it is making the data input by a form on my webpage appear blank.
Here's my PHP:
<?php
//the example of inserting data with variable from HTML form
//input.php
mysql_connect("localhost", "bashletc_upload", "fakepassword", "bashletc_font- database");//database connection
//inserting data order
$order = "INSERT INTO `bashletc_font-database`.`fonts`
(filename, filelocation)
VALUES
('$filename',
'$filelocation')";
//declare in the order variable
$result = mysql_query($order); //order executes
if($result){
echo("<br>File has been logged.<br> All your font are belong to us.");
} else{
echo("<br>Input Failure.");
}
?>
EDIT: Here's the HTML form.
<form action="insert.php" method="post">
<p> Please enter this information into our public <br> database so others can use this font!<br> This feature is not implemented yet.</p>
File-Name: <input type="text" name="$filename"><br>
File-Location: <input type="text" name="$filelocation">
<input type="submit">
</form>