1. Include this with your form 2. Convert POSTdata to a PHP variable thusly: $myLocation = $_POST['myLocation']; 3. Instead of refreshing the index.php page with include('index.php'); write this instead: include ($myLocation);