hello,
Im creating a registration page and i want to keep the user entered data after a generation of an error message.
form and the validations are in separate pages and validations belongs to a class.
html form
First Name
*
<--!more data-->
All methods i used are static
this is the class that handles the submition
class Handler{
public static function register() {
if(isset($_GET['btnregister']))
{
$fname=trim($_GET['txtfname']);
//some more codes
}
}
as you see im trying to access $fname but it does not work. i think there is a better way to do this.. can anyone please give me an idea?