Jump to content

lifeseries

Members
  • Posts

    23
  • Joined

  • Last visited

Everything posted by lifeseries

  1. But my server is MAC also, can?....by the way, what are the difference between ASP and PHP if i want to learn...
  2. I also want to use PHP or ASP, but i don't know this kind of programming and somemore i'm using mac...
  3. its work..thank you so much...now i'm gonna encrypt it...so that other ppl won't see the password...
  4. i had change the input type to submit, but when i enter the button, the username and password box will be clear instead of directing to other page...can you help me?tkz....
  5. Here is the code that i modified but seem like not working...Any idea?<html> <head> <meta http-equiv="content-type" content="text/html;charset=iso-8859-1"> <meta name="generator" content="Adobe GoLive"> <title>Untitled Page</title> </head> <script LANGUAGE="JavaScript">// ** Functions() (NON-EDITABLE)function LogIn(){loggedin=false;password = document.getElementById('pass').value;password = password.toLowerCase();username = document.getElementById('user').value;username = username.toLowerCase();// ** Login Names and P-words (EDITABLE)if (username=="c" && password=="cc") { loggedin=true;window.location="cc.html";}if (username=="a" && password=="aa") {loggedin=true;window.location="a.html";}if (username=="b" && password=="bb") { loggedin=true;window.location="bb.html";}// ** Alert for incorrect (EDITABLE BUT NOT RECOMENDED)if (username=="") alert("Please enter username."); elseif (password=="") alert("Please enter password."); elseif (loggedin==false) { alert("Login failed!\n\nPlease enter the correct username and password.");}}</SCRIPT> <body bgcolor="#ffffff"> <div align="center"> <table width="300" border="6" cellspacing="2" cellpadding="2" height="300"> <tr> <td> <div align="center"> <form id="login" action="" method="get" method="get" onsubmit="LogIn(); return false;"> <font size="-1" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">username:</font><input type="text" name="textfieldName" size="24"><br> <font size="-1" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif">password:</font><input type="password" name="textfieldName" size="24"><br> <input type="button" name="submitbut" value="GO"> </form> </div> </td> </tr> </table> </div> <p></p> </body></html>
  6. my coding doesn't have a form in it, that mean i need to add a form, correct?
  7. ya, i know, that why i'm gonna encrypt the code. can the code accept more than 1 username and password?is it a php script or javascript because i saw the goto.php action.if i stick with my coding, which part should i modify to make it accept the enter key from keyboard..thank...
  8. Here are the codes, hope you can help me..thankz....<html> <head> <title>goto</title> <script LANGUAGE="JavaScript">// ** Functions() (NON-EDITABLE)function LogIn(){loggedin=false;password = document.getElementById('pass').value;password = password.toLowerCase();username = document.getElementById('user').value;username = username.toLowerCase();// ** Login Names and P-words (EDITABLE)if (username=="aaa" && password=="bbb") { loggedin=true;window.location="goto.html";}// ** Alert for incorrect (EDITABLE BUT NOT RECOMENDED)if (username=="") alert("Please enter username."); elseif (password=="") alert("Please enter password."); elseif (loggedin==false) { alert("Login failed!\n\nPlease enter the correct username and password.");}}</SCRIPT> </head> <body onload="init();" ID="index" bgcolor="#eeeeee" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <table width="800" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="white"> <tr> <td valign="top"> <table width="800" border="0" cellspacing="0" cellpadding="0" bgcolor="#eeeeee" height="8"> <tr> <td valign="top"></td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0" align="center" height="126"> <tr height="126"> <td width="800" height="126" background="images/header.jpg"></td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0" height="12"> <tr> <td> <div align="center"> </div> </td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0" height="50"> <tr> <td> <div align="center"> <font size="5" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif"><b>WELCOME TO MAGNA DIGITAL ARCHIVING SERVICES</b></font></div> </td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0" height="40"> <tr> <td></td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0" height="146"> <tr> <td valign="top"> <table width="800" border="0" cellspacing="0" cellpadding="0" height="146"> <tr height="146"> <td width="242" height="146"></td> <td valign="top" width="316" height="146" background="images/greybox2.jpg"> <table width="316" border="0" cellspacing="0" cellpadding="0" height="146"> <tr height="30"> <td width="316" height="30"></td> </tr> <tr height="15"> <td width="316" height="15"></td> </tr> <tr height="30"> <td width="316" height="30"> <table width="316" border="0" cellspacing="0" cellpadding="0" height="30"> <tr height="30"> <td width="16" height="30"></td> <td width="61" height="30"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">username</font></td> <td width="140" height="30"><input type="text" id="user" name="user" size="21" maxlength="20" onfocus="if(this.value){ user.value = ''; }"></td> <td width="50" height="30"> <div align="center"> <img src="images/box.jpg" alt="" height="22" width="38" border="0"></div> </td> <td width="49" height="30"></td> </tr> </table> </td> </tr> <tr height="30"> <td width="316" height="30"> <table width="316" border="0" cellspacing="0" cellpadding="0" height="30"> <tr height="30"> <td width="16" height="30"></td> <td width="61" height="30"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">password</font></td> <td width="140" height="30"><input type="password" id="pass" name="pass" size="21" maxlength="20" onfocus="if(this.value){ pass.value = ''; }"></td> <td width="50" height="30"> <div align="right"> <input type="button" value="Go" onclick="LogIn();"></div> </td> <td width="49" height="30"></td> </tr> </table> </td> </tr> <tr height="41"> <td width="316" height="41"> </td> </tr> </table> </td> <td width="242" height="146"></td> </tr> </table> </td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0" height="20"> <tr> <td> <div align="center"> </div> </td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0" height="18"> <tr> <td> <div align="center"> <img src="images/line.jpg" alt="" height="1" width="433" border="0"></div> </td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0" height="50"> <tr> <td> <div align="center"> <font size="4" face="Helvetica, Geneva, Arial, SunSans-Regular, sans-serif"><b>BRINGING TOGETHER FILM AND DIGITAL TECHNOLOGY </b></font></div> </td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0" height="80"> <tr height="80"> <td width="800" height="80"> <div align="center"> <img src="images/bottom.jpg" alt="" height="80" width="800" border="0"></div> </td> </tr> </table> <table width="800" border="0" cellspacing="0" cellpadding="0" height="13"> <tr> <td> <div align="center"> <img src="images/text.jpg" alt="" height="13" width="221" border="0"></div> </td> </tr> </table> </td> </tr> </table> </body></html>
  9. hi, i have a login javascript coding which now is using mouse to hit the enter button to accept username and password, can you guy help me that after user type in password, he or she just need to hit the keyboard enter key instead of using mouse to click the enter button.Thank...
  10. do you have any website or coding recommend to me regarding the search function..thanks...is it possible to code it using mac...Can mac support php?
  11. Hi, i'm a newbie here, i need to add a search function into my current website. Can somebody guide me? Some more i'm using mac.
  12. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html> <head> <title>Untitled Page</title> <script LANGUAGE="JavaScript">// ** Functions() (NON-EDITABLE)function LogIn(){loggedin=false;// ** Login by text boxpassword = document.getElementById('pass').value;password = password.toLowerCase();username = document.getElementById('user').value;username = username.toLowerCase();// ** Login Names and P-words (EDITABLE)if (username == "user1" && password == "pass1") { loggedin=true;window.location="a.html";}if (username == "user2" && password == "pass2") {loggedin=true;window.location="b.html";}// ** Alert for incorrect (EDITABLE BUT NOT RECOMENDED)if (loggedin==false) {alert("Login failed!\n\nPlease supply new credentials.");}}</SCRIPT><csactions> <csaction name="C053018F0" class="Password Plus" type="onevent" val0="188560" val1=""></csaction> <csaction name="C05301A71" class="Password Plus" type="onevent" val0="3164528" val1=""></csaction></csactions><csscriptdict import> <script type="text/javascript" src="file:///Users/g4/Library/Preferences/Adobe/GoLive/Settings7/JScripts/GlobalScripts/CSScriptLib.js"></script></csscriptdict> <csactiondict> <script type="text/javascript"><!--CSAct[/*CMP*/ 'C053018F0'] = new Array(PVpassword,'188560','');CSAct[/*CMP*/ 'C05301A71'] = new Array(PVpassword,'3164528','');// --></script></csactiondict> </head> <body> <font color="#432aff">Username: </font><font size="+3"><input type="text" id="user" /></font> <p><font color="#3300ff">Password:</font> <font size="+3"><input onclick="CSAction(new Array(/*CMP*/'C053018F0',/*CMP*/'C05301A71'));return CSClickReturn()" type="password" id="pass" csclick="C053018F0,C05301A71" /></font></p> <p> <input type="button" value="Go" onclick="LogIn();" /></p> </body></html>Hi , can anyone help me on this?In the function login(), can i pass in the encryted password to validate the user? Because in the method above, when anybody click view source, they are able to see the user name and password, can anybody tell me what is the command to call the encryted password?Thanks
  13. lifeseries

    PHP on mac

    i'm totally new to PHP. I want to do a login page which using PHP. but the problem is i dunno the setting for the mac and golive. Can anybody help me regarding this issue. your help will be very appreciate.
  14. sorry for the database again cos i didn't see the previous post..
  15. can somebody teach me on how to connect database for php, i'm using golive cs and mac.thanks...
  16. thank, that mean i need a database, is it? can i use microsoft access?for the previous encryping code, u really can't solve it?i really hope it can be solve because i don't know the login code in PHP..some more my company is not a web development company, is just my boss need a website to do digital image library...She always ask me why i must use the asp or php since it is window language and not universal....
  17. ya i dont know about PHP language..that why i stick with this coding...can u guys help me...i really need this code to accept more than 1 password....
  18. <input type="button" value="button" onclick="CSAction(new Array(/*CMP*/'C05064EC0'));return CSClickReturn()" /></body>is ok, for example the code below, can it read more than 1 action, i mean at the moment it read 1 password, can it read more than 1 password?pls help me...thanks a lot
  19. thanks scot100, that is exactly what i want, how you do that?as i know, this coding can accept 1 password only, can it be accept more than password?For example, now the password is Hello which is linking to Hello.htmlcan it be another password linking to another page?thank guy...
  20. i see, do you have any encrypted coding for javascript as my website is not that important as for example google..at the moment i had the above coding but that will prompt a box and what i type in is not asterisk...can you guys help me on this. what i want is a password field and a submit button and not prompt box...thank...
  21. ya i know, but i'm using mac and not pc, that why i need your help..
  22. thank for the help, i have 1 coding that will encrypt the password which mean that when user view the source code, they will the the encrypted password and not the original. <html> <head> <meta http-equiv="content-type" content="text/html;charset=iso-8859-1"> <meta name="generator" content="Adobe GoLive"> <title>Untitled Page</title> <csactions> <csaction name="C05064EC0" class="Password Plus" type="onevent" val0="42732" val1="Please Proceed"></csaction> </csactions> <csscriptdict> <script type="text/javascript"><!--function CSClickReturn () { var bAgent = window.navigator.userAgent; var bAppName = window.navigator.appName; if ((bAppName.indexOf("Explorer") >= 0) && (bAgent.indexOf("Mozilla/3") >= 0) && (bAgent.indexOf("Mac") >= 0)) return true; /* dont follow link */ else return false; /* dont follow link */}CSStopExecution=false;function CSAction(array) {return CSAction2(CSAct, array);}function CSAction2(fct, array) { var result; for (var i=0;i<array.length;i++) { if(CSStopExecution) return false; var aa = fct[array[i]]; if (aa == null) return false; var ta = new Array; for(var j=1;j<aa.length;j++) { if((aa[j]!=null)&&(typeof(aa[j])=="object")&&(aa[j].length==2)){ if(aa[j][0]=="VAR"){ta[j]=CSStateArray[aa[j][1]];} else{if(aa[j][0]=="ACT"){ta[j]=CSAction(new Array(new String(aa[j][1])));} else ta[j]=aa[j];} } else ta[j]=aa[j]; } result=aa[0](ta); } return result;}CSAct = new Object;var actn1 = "";var actn2 = "";var pass=""var z=23;var y=28;iCounter = 3;if (Array) { var f= new Array(); var K= new Array(); var base= new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z","a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z")} function inc(){iCounter--if (iCounter > 0) { if (confirm("\nPassword is incorrect.\n\n\n\nRetry?")) Check() } else alert('Access Denied');} function Check(){pass = prompt("Enter your password.","")if(pass==null || pass==""){ alert("You did not enter a password!"); if(pass==""){ Check() } } else{ var lpass=(pass.length)+1 for (l=1; l<lpass; l++){ K[l]=pass.charAt(l) } var transmit=0; for (y=1; y<lpass; y++){ for(x=0; x<62; x++){ if (K[y]==base[x]){ transmit+=f[x] transmit*=y } } } if (transmit==parseInt(actn1)) go() else inc()} } function go(){alert(actn2);location.href=pass+".html";} function PVpassword(action) { if (Array) { actn1 = action[1]; actn2 = action[2]; z=23; y=28; for (x=0; x<10; x++){ f[x]=x<<9 f[x]+=23 } for (x=10; x<36; x++){ y=y<<1 v= Math.sqrt(y) v = parseInt(v,16) v+=5 f[x]=v y++ } for (x=36; x<62; x++){ z=z<<1 v= Math.sqrt(z) v = parseInt(v,16) v+=74 f[x]=v z++ } iCounter = 3; Check();} }// --></script> </csscriptdict> <csactiondict> <script type="text/javascript"><!--CSAct[/*CMP*/ 'C05064EC0'] = new Array(PVpassword,'42732','Please Proceed');// --></script> </csactiondict> </head> <body bgcolor="#ffffff"> <p><a onclick="CSAction(new Array(/*CMP*/'C05064EC0'));return CSClickReturn()" href="nextpage.html" csclick="C05064EC0">Please click to enter your password</a></p> </body></html>
  23. hi, i'm a newbie here, can somebody help me with this question?i'm doing a javascript that is for login purpose, but the password can be seen in the browser>view coding. Can you guys help me?is there any way to prevent the password to be seen?thank guys...
×
×
  • Create New...