jenniferG Posted September 18, 2007 Share Posted September 18, 2007 we hava a login page that sends form variables to a php page that sends the response.text back to the original page to a text field with ID='password' so that if the field data is not correct, it says INVALID in the password text field. so far,so good. If the data is correct, the php code executes a header('location: URL') command, but the target page ,is displayed as text in the text box, instead of control being vectored to the target page. Thanks, Jennifer Quote Link to comment Share on other sites More sharing options...
mainewoods Posted October 10, 2007 Share Posted October 10, 2007 just have the php page send a flag back through ajax for succesful logon and then test the return value before innerHTML'ing the value. If it is the flag you are looking for then you can execute a window.location = "??" from javascript to change the page. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.