Jump to content

location tag in response


jenniferG

Recommended Posts

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

  • 4 weeks later...

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.