rendered paste body<?php session_start(); if ($_SESSION['loggedin'] == "1") { if (isset($_POST)) {include('conn.php'); $name = $_POST['name']; $desc = $_POST['desc']; $dim = $_POST['dim']; $link = $_POST['link']; mysql_query("INSERT INTO games (name, desc, dim, link) VALUES ('$name', '$desc', '$dim', '$link');");} else {?><html><body><form method="post"> <div> Game Name </div> <div> <input name="name" type="text" id="name"> </div> <div> Description </div> <div> <input name="desc" type="text" id="desc"> </div> <div> <input name="dim" type="text" id="dim"> </div><div><input name="link" type="text" id="link"></div><div><input name="add" type="submit" id="add" value="Add New Game"></td></div></form><?php } }else {echo 'Please <a href="/ifsupport.net/login.php">log-in</a>';}?> <div> <a href="/ifsupport.net/index.php">List Games</a> | <a href="/ifsupport.net/search.php">Search</a> </div></body></html>