Jump to content

lifeseries

Members
  • Posts

    23
  • Joined

  • Last visited

lifeseries's Achievements

Newbie

Newbie (1/7)

0

Reputation

  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...
×
×
  • Create New...