I'm trying to create a system to store user rides in a table to create a simple gallery I've started coding it and this is what i got. [code] $db = mysql_connect ("$host", "$username", "$password"); mysql_select_db ("$databasename", $db); //Start add article if($action=="add") { //If they have entered data into the form, do this if($name||$year||$yearcat||$details||$image1||$image2||$image3||$image4||$smpic) { $insertIt=mysql_query("INSERT INTO $tablename (`name`, `year`, `yearcat`, `details`, `image1`, `image2`, `image3`, `image4`, `smpic`) VALUES ('$name', '$year', '$yearcat', '$details', '$image1', '$image2', '$image3', '$image4', '$smpic')",$db); } if($insertIt) { echo " <i>$name</i> has been successfully added<br>"; } else { echo "Sorry there has been an error, please try again<br>"; } } //give form else { echo" <form id=\"form1\" name=\"form1\" method=\"post\" action=\"$PHP_SELF\"> <label>Name <input name=\"name\" type=\"text\" id=\"name\" maxlength=\"30\" /> </label> <p> <label>Year <input name=\"year\" type=\"text\" id=\"year\" size=\"6\" maxlength=\"4\" /> </label> </p> <p> <label>Year Catagory <select name=\"yearcat\" id=\"yearcat\"> <option value=\"05up\">05up</option> <option value=\"9904\">9904</option> <option value=\"9498\">9498</option> <option value=\"8793\">8793</option> <option value=\"7986\">7986</option> <option>Choose One</option> </select> </label> </p> <p> <label>Details <textarea name=\"details\" cols=\"40\" rows=\"6\" id=\"details\" maxlength=\"255\"></textarea> </label> </p> <p>Locations of Images:</p> <p> <label>Image1 <input name=\"image1\" type=\"text\" id=\"image1\" /> </label> </p> <p> <label>Image 2 <input name=\"image2\" type=\"text\" id=\"image2\" /> </label> </p> <p> <label>Image 3 <input name=\"image3\" type=\"text\" id=\"image3\" /> </label> </p> <p> <label>Image 4 <input name=\"image4\" type=\"text\" id=\"image4\" /> </label> </p> <p> <label>Thumbnail Image <input name=\"smpic\" type=\"text\" id=\"smpic\" /> </label> </p> <p><input name=\"action\" type=\"hidden\" value=\"add\"> <input type=\"submit\" value=\"Add Article\"></p> </form> "; ?> [/code] i tried doing userride.php?add to test this and all i got was a blank page