$usernam = "rootgenie"; // MySQL username $pass = "abazar"; // MySQL Password $db = "genie_db"; // MySQL database $conn = mysql_connect("localhost", "$usernam", "$pass") or die("Invalid server or user."); // Connects to MySQL Database mysql_select_db("$db", $conn); if(isset($HTTP_POST_VARS['txname'])){ $sql="INSERT INTO web_tb VALUES('','".$HTTP_POST_VARS['txcompany']."','".$HTTP_POST_VARS['txname']."','".$HTTP_POST_VARS['txcountry']."','".$HTTP_POST_VARS['txtel']."','".$HTTP_POST_VARS['txfax']."','".$HTTP_POST_VARS['txmail']."','".$HTTP_POST_VARS['txpage']."','".$HTTP_POST_VARS['txintro']."','".$HTTP_POST_VARS['txgraphic']."','".$HTTP_POST_VARS['txjava']."','".$HTTP_POST_VARS['txstatic']."','".$HTTP_POST_VARS['txdynamic']."','".$HTTP_POST_VARS['txbank']."','".$HTTP_POST_VARS['txcd']."','".$HTTP_POST_VARS['txlang']."','".$HTTP_POST_VARS['txjob']."','".$HTTP_POST_VARS['txsite']."','".$HTTP_POST_VARS['txcomment']."')"; $result = mysql_query($sql, $conn); } mysql_close($conn); ?>