<form action="<?php echo $_SERVER['PHP_SELF']; ?>"> //there is no reason to use this to submit form data to the same page <form action=""> //will do the same thing