/    Sign up×
Community /Pin to ProfileBookmark

[COLOR=DarkOrange]PLEASE ANYONE OUT THERE THAT CAN HELP!!!![/COLOR]

Am I asking a really stupid question or is there no-one out there that can answer me!!! I’d really like to know eithr way. If I’m being stupid tell me – I won’t take offence just save a lot of time!! ?

to post a comment
JavaScript

6 Comments(s)

Copy linkTweet thisAlerts:
@phpnoviceMar 11.2006 — Sorry to say it, but I guess it is you that is being stupid. Why? Because you didn't ask a question, so there is no way to tell if it is a stupid question. :p
Copy linkTweet thisAlerts:
@confusedbunnyauthorMar 11.2006 — Sorry to say it, but I guess it is you that is being stupid. Why? Because you didn't ask a question, so there is no way to tell if it is a stupid question. :p[/QUOTE]
Thought it might be!!!! The code I have is as follows:

<form name=login>

<table border=1 cellpadding=3>

<tr>

<td width="77" height="6"></td>

<td width="77"></td>

</tr>

<tr>

<td valign="top" height="27"><font face="Copperplate Gothic Bold, Copperplate Gothic Light, Baskerville Old Face" size="2">Username</font>:</td>

<td valign="top">

<select name=memlist>

<option value='x'>

<option value='sunnysid|51914|PEEXXILK'>sunnysid

<option value='lafrance|35384|HPMDWQOK'>lafrance

</select>

</td>

</tr>

<tr>

<td></td>

<td></td>

</tr>

<tr>

<td><font face="Copperplate Gothic Bold, Copperplate Gothic Light, Baskerville Old Face" size="2">Password</font>:</td>

<td>

<input type=password size=10 maxlength=8 name=pass>

</td>

</tr>

<tr>

<td colspan=2 align=center>

<input type=button value="Login" onclick="check(this.form)">

</td>

</tr>

</table>

</form>

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin

var params=new Array(4);

var alpha="ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHI";

function check(form) {

which=form.memlist.selectedIndex;

choice = form.memlist.options[which].value+"|";

if (choice=="x|") {

alert("Please Select Your Name From The List");

return;

}

p=0;

for (i=0;i<3;i++) {

a=choice.indexOf("|",p);

params[i]=choice.substring(a,p);

p=a+1;

}

h1=makehash(form.pass.value,3);

h2=makehash(form.pass.value,10)+" ";

if (h1!=params[1]) {

alert("Incorrect Password!"); return; };

var page="";

for (var i=0;i<8;i++) {

letter=params[2].substring(i,i+1)

ul=letter.toUpperCase();

a=alpha.indexOf(ul,0);

a-=(h2.substring(i,i+1)*1);

if (a<0) a+=26;

page+=alpha.substring(a,a+1); };

top.location=page.toLowerCase()+".html";

}

function makehash(pw,mult) {

pass=pw.toUpperCase();

hash=0;

for (i=0;i<8;i++) {

letter=pass.substring(i,i+1);

c=alpha.indexOf(letter,0)+1;

hash=hash*
mult+c;

}

return(hash);

}

// End -->

</script>
Copy linkTweet thisAlerts:
@phpnoviceMar 11.2006 — Thought it might be!!!! The code I have is as follows:[/QUOTE]
OK, still no question. ? "Here's your sign." :p
Copy linkTweet thisAlerts:
@confusedbunnyauthorMar 11.2006 — :p Sorry. The question is!!!!! Why, using this code, when you hit the enter button instead of clicking the login button, does the username and password show up in the address bar in a string? What can I do to the code to stop it doing this? See question mark - question!!!!!!
Copy linkTweet thisAlerts:
@ExuroMar 11.2006 — I'm pretty sure you already posted this question and already received an answer...
&lt;form name="login" [color=red]method="post"[/color]&gt;
Copy linkTweet thisAlerts:
@phpnoviceMar 11.2006 — Why, using this code, when you hit the enter button instead of clicking the login button, does the username and password show up in the address bar in a string?[/QUOTE]
Yes, this was answered already:

http://www.webdeveloper.com/forum/showpost.php?p=529555
×

Success!

Help @confusedbunny spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.24,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...