I am using jquery mobile form to submit login form. process_login.php receive the form data, process the form and redirects to cp.php. Normally, you get cp.php in url bar but its not working in jquery mobile. URL is always process_login.php but content is from cp.php. and whenever i try to debug code by adding some alerts in process_login.php i get "undefined" on screen. What i need to do proper redirect in jQuery mobile environment?
Wouldn't it be better to use an ajax request to process_login.php and then with the response redirect the user, or display errors etc for everything else?
And wouldn't it be better to name the page something else than cp.php? Some abbreviations are best left unused...