Your login form gave me a 404 error.
Basically, though, after you perform whatever validation routine you use you could then build the destination URL based on whatever they submitted then send them there via the header() function. You shouldn't hafta worry about it too much, however, customers are usually not to keen on remembering their own numbers.