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 Link to comment https://forums.phpfreaks.com/topic/69784-location-tag-in-response/ 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. Link to comment https://forums.phpfreaks.com/topic/69784-location-tag-in-response/#findComment-366609 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.