hallo, clicking on submit entered info. is not entering in database. how to set submit , so that query wll execute correctly. ?php if($submit) { $dbh=mysql_connect ("localhost", "root") or die ('I cannot connect to the database because: ' . mysql_error()); mysql_select_db ("dollar1_allinfo"); mysql_query("INSERT INTO totalinfo (Username,Password) VALUES ('$loginusername','$loginpassword')")or die (mysql_error()); } ?> thank you. --------------------------------- Do you Yahoo!? Send a seasonal email greeting and help others. Do good.