bmac_php Posted March 19, 2009 Share Posted March 19, 2009 Thanks to you guys I have been able to get my form to post email and name to my DB. Now I realize that I need to redirect it back to this page "http://5datesaweek.com/index4a.html" - How do I do that? I am just starting to learn PHP and would appreciate a good "dumbing down" on instruction if possible. If not just a solution and no explination is fine! /* Accessing SQL-server */ MYSQL_CONNECT($server, $user, $password) or die ( "<H3>Server unreachable</H3>"); MYSQL_SELECT_DB($database) or die ( "<H3>Database non existent</H3>"); /* Entering the values */ MYSQL_QUERY( "INSERT INTO $table VALUES('OneandOne','[email protected]')"); MYSQL_QUERY( "INSERT INTO $table VALUES('1and1','[email protected]')"); /* Display number of entries */ $number=MYSQL_NUMROWS(MYSQL_QUERY( "SELECT * FROM $table")); if ($number==0): echo "database empty"; elseif ($number > 0): echo "Thank You!"; endif; /* Close SQL-Connection */ MYSQL_CLOSE(); ?> Thank You PHP Freaks!! Link to comment https://forums.phpfreaks.com/topic/150173-form-submit-redirect-noob/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.