I need a quick change on this, so it can submit data to server and redirect too.
<?php
// Connects to your Database
mysql_connect("localhost", "-----", "-----") or die(mysql_error());
mysql_select_db("7777r") or die(mysql_error());
//This code runs if the form has been submitted
if...