Secure Inline

HEY I AM MAKING A PAGE AND IT HAS AN INLINE FRAME ON EACH PAGE...I WANT IT SO THAT PEOPLE CAN LOG-IN AND WHEN THEY TYPE IN THE CORRET PASSWORD AND PRESS THE "SUBMIT" BUTTON THE INLINE FRAME WILL SHOW A SECURE DOCUMENT. HOW DO I DO THIS?<!--content-->only with serverside language. like php, cgi, asp<br />
<br />
and don't post in uppder case, it is like you are yelling at us.<!--content-->sorry man....thanks for the help ill try to do that<!--content--><script><br />
//Encrypted Password script- By Rob Heslop<br />
//Script featured on Dynamic Drive <br />
//Visit <!-- m --><a class="postlink" href="http://www.dynamicdrive.com">http://www.dynamicdrive.com</a><!-- m --> <br />
<br />
function submitentry(){<br />
password = document.password1.password2.value.toLowerCase()<br />
username = document.password1.username2.value.toLowerCase()<br />
passcode = 1<br />
usercode = 1<br />
for(i = 0; i < password.length; i++) {<br />
passcode *= password.charCodeAt(i);<br />
}<br />
for(x = 0; x < username.length; x++) {<br />
usercode *= username.charCodeAt(x);<br />
}<br />
if(usercode==124950&&passcode==1124950)<br />
{<br />
window.location=password+".htm"}<br />
else{<br />
alert("password/username combination wrong")}<br />
}<br />
</script><br />
<br />
<form name="password1"><br />
<strong>Enter username: </strong><br />
<input type="text" name="username2" size="15"><br />
<br><br />
<strong>Enter password: </strong><br />
<input type="password" name="password2" size="15"><br />
<br />
<input type="button" value="Submit" onClick="submitentry()"><br />
</form><br />
</body><br />
<br />
<br />
<br />
<br />
<br />
ok where it says submitentery ( )i know you can insert information there and put code there but i tried using the src= <!-- m --><a class="postlink" href="http://www.htmlforums.com/archive/index.php/then">http://www.htmlforums.com/archive/index.php/then</a><!-- m --> the file info <br />
but I dont know how to make it so that the inline frame the form is in changes when you insert the correct password..(name=123 password=456)and press the submit button<br />
sry for the long code..<!--content-->javascript is not very secure.<!--content-->the page is one for an organization me and my freinds have put together...the page is just gonna be for us to tell when were gonna got to the track and stuff....i was going to use the more secure method (php im pretty sure is what it is) but i ahve never used it.<br />
<br />
Ps i am basicly self-teaching myself html. I mostly do graphics but i am trying to do pages.<!--content-->Use htaccess if you don't need anything fancy looking. most hosts allow you to setup names and passwords via a control panel of sorts. Consult the help pages of your webhost or contact them about using htaccess to setup protected directories.<!--content-->OK... You definately need to use a server side language if you are going to have a secure zone. I would recommend PHP, as it isn't all that hard to learn. If it is urgent I can provide you with a simple log-in system, however it would be better if you did it yourself as you would learn alot from the experience. I have made a log-in system for a site I will launch soon, however at the moment I run it directly from my computer, so if you want to see it you will have to get my IP of me (the IP is always changing...so just ask me for it on MSN (my address is <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->)).<!--content-->
 
Back
Top