...

View Full Version : Problems logging in with missing file.



squish
06-25-2012, 06:20 AM
Hi guys, I'm a complete newbie when it comes to java so if anyone can help it would be much appreciated. The problem I'm having is that I have this code:

<script language = "javascript">
function validate(text1,text2,text3,text4) {
if (text1==text2 && text3==text4)
load('jake.php');
else
{
alert('Login incorrect..');
}
}

function load(url) {
location.href=url;
}
</script>

And I don't have the jake.php file, meaning I don't know what's in that file. I'm having trouble getting the login page of my site to link with the database. And I'm pretty sure it is this file. Does anyone have any idea what that file might be?

Thanks

EpicWebDesign
06-25-2012, 06:56 AM
First of all, this script is totally out dated in the way it is written. Secondly, do you not have access to your own server? Where are you calling this from? You didn't post your html. Do you even have a form that has those text field names in it?

It's 2 o'clock in the morning for me so I know I'm tired and maybe misuderstanding, but I don't see how you are using this code as a log in form without having access to the rest of the pages on your server.

If you do have full server access them just rename the php file to whatever file you need to call in order to validate a login.

It would be really helpful if you could post a link to your page or the full code.

Philip M
06-25-2012, 07:18 AM
Hi guys, I'm a complete newbie when it comes to java so if anyone can help it would be much appreciated.

This is the JavaScript forum. Java and Javascript are entirely different programming languages, in spite of the confusingly similar names. Rather like Austria and Australia!

JavaScript automatically prevents scripts on one server from accessing properties of documents on a different server. This restriction prevents scripts from, for example, fetching private information such as directory structures or user session history

Simply stated, the SOP states that JavaScript code running on a web page may not interact with any resource not originating from the same web site.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum