i have made the form action a variable..ie code echo the 1.php if registration values have been set by the user accordingly....and register.php if user have entered some improper values.
then i save these values in session variables and call these variables on 1.php to enter in the database.
my problem
when the user enter the values for first time and clicks submit ..he is returned on register.php instead of 1.php ....then if user again fills the register page it sends to 1.php(ie it doesnt work on first place) and next weird thing is that the session variables keep the values entered during the first time and saves htese to database........
i m not able to get it right.......