This question seems to always have 2 sides to it. If I make a register.php with the registration form, should I have it submit to processreg.php or should it just process all on the same page? Same thing for login.
I have read that it may e more secure to have them on separate pages and you will not run into form resend problems, but what's your take on this matter? I am creating a site with potentially hundreds of thousands (100K+) users on it, should I just make it go to processreg.php, then if it's invalid, redirect back to register.php with the variables stored so user doesn't have to reenter data?
Also, If it is on a separate page, does that mean I can process the form with AJAX, for validation and what not? I guess I can always use JavaScript form validations. Any and all input is much appreciated.
little off from main point, but would not be cool if the whole registration was a function? Like would that NOT be recommended?