Search code examples
javascriptphphtmlcssforgot-password

Nothing will load on the password recovery link


I have created a password recovery function for the user. So when the user goes in to the normal website www.foobar.com/passwordRecovery , the user can request a new link to change it's password. The user will then recieve an email in with a link that is crypted and will look something like this www.foobar.com/passwordRecovery/crypted msg/. The problem is when the user clicks this link none of the javascript or css is loaded. its only html. Why is it like this? I get error code in the consol that says

stylesheet http://localhost/password_retrival/passwordRetrival.inc.php/jquery-ui-1.11./jquery-ui.css loaded as CSS even if its MIME-typ, ”text/html”, is not ”text/css”.

Expecting a selector . Rule Set ignored due . invalid selector

The stylesheet http : //localhost/password_retrival/passwordRetrival.inc.php/passwordRetrivalStyle.css loaded as CSS even though its MIME type , " text / html " , is not " text / css " .


Solution

  • Define your css in your HTML like this:

    <link href="http://localhost/password_retrival/passwordRetrival.inc.php/jquery-ui-1.11./jquery-ui.css" rel="stylesheet" type="text/css" />