HTML - Login Page
If i make a login page in html like
HTML Code: <html> <head> <title>Test Box</title> </head> <body> <br> <input text maxlength="15" onfocus="this.value=''" type="text" value="User name"> <input text maxlength="20"onfocus="this.value=''" type="password" value="Password"> <button disabled>Login</button> </body> </hmtl> Then how to i do it so when they enter there username and password the login button is active. Similar TutorialsHi, I have the following situation. I want when the user types http://locahost/abc.html or http://locahost/xyz.html he should be automatically redirected to the http://locahost/login.html page User can only access http://locahost/xyz.html page when he clicks a link on http://locahost/abc.html and not by directlty typing it in the browser. By this i want only authorized users to have access to my web pages. My web portal is hosted on apache server on linux OS. How can i do this? Any help would be greatly appreciated. Hi i work for a web design company and im new to dreamweaver and html My client needs me to create a main landing page for his site and it will say click here to enter and when i click here to enter it will require a user name and password to get into the site, how do i do that? I am working on my school's website and one of the teachers would like a page that she can log into and post assignments and what not. I figured this wouuld be easy, but the server does not support PHP, which means no SQL either. How should I go about making this page with straight html? I'm a professional photographer, I taught myself how to design websites in the beginning of 07. While my site www.8aphotography.com may be basic it has a look that I enjoy. My question is how can I get a simple way for my clients to login to a private gallery. I searched Google and so forth but came across nothing that showed how to do it. I'm looking to be able to give my clients a user name and password that they could type in to view their photographs. Anyones help would be greatly appreciated. Philip I dont know where to post this and i searched and couldnt find it but can anyone help me.. im creating a webpage using dreamweaver cs3 and i need to password protect a page, using a username and password, can this be done any other way besides php? If so how can i do it? Hi all. Just wondering how to make sign up and login pages for a site but don't know how to save the data entered for sign up and then check it for login! I am just learning how to do HTML & I want to do a login page for my final website. I need the HTML code with ALL directions on where to put it what to change so the things save to somewhere, how to direct the page so after you hit "Login" it will go to another page. I want the most simple codes possible, ty hi i finished my html project but i still need to make a login page for the project.and this page should be linked to a database.i mean the username is the email saved in the database and the password also saved in MS access database. i created the form but i don't know how to link it to database and how to verify if the username and password r correct or not and if username and password correct open system.html if not open login page. if u please can give me some suggestion? Hi, I have 6 users who need to access a roster on the website. only they are to view the roster can I use a flat file with their usernames and a passwords? i have a friend in a band who wants to be able to email a link to labels interested in their music. the email would also contain a username and password that allows access to an album. is there a simple way (basic HTML coding) to create a login process on a web page? any help would be appreciated. i'm not entirely skilled in web design... i've built two sites and am mainly a WYSIWYG type of designer. i'm continually honing the craft, so basics are what i need. thanks and sorry for my ignorance. ira Hi, this is jyothi. I am new in this site, I am preparing new program with login page, But I don't know the script for the login button, Can anyone please help me. Hello, I have an avactis website. I want to manually add a passphrase page infront of the website. I would prefer to do this outside of avactis. I have the code to make the login (which is encrypted in the source). How do I add a page with the passphrase code infront of the webpage so that when you type in the domain name, it redirects to the home. Cheers, Ryan anyone knows a way to sign into google apps without involving a google hosted sign in page? somebody in a blog described same problem like "We're having a Google Apps mail service. And we want to create a gmail login form on our main site. The mail login page resides at mail.our_domain.com. And we're trying to create a form at www.our_domain.com pages to send the user to his gmail account. I've copied the whole html code from mail.our_domain.com and placed in www.our_domain.com pages. And when the form gets submitted it redirects to mail.our_domain.com displaying the login form with security warning that it is only safe to log in from there. " since i do not understand html or so i need help, lets say my domain is xy.com, how must the html code must look like to enter google apps mail directyl from my domainwebpage. Please help Ok, This might be a bit confusing but ill try my best. On my main website homepage i have a splash image which when clicked redirects to the main website, also in another folder i have a phpbb3 Forum. Below the image on my homepage i have a login box for the forum as well. What i would like to do is to hide that login box unless a keyword is entered before hand, and make the domain.com/forum URL inaccessible unless you login through this route. basically hiding the forum completely so people dont actually know its there. I could do this through .htaccess however i was hoping there was a "cleaner" way to do this. Many Thanks Rob Hello gurus, usually i write code to bypass the login and passwd page for science journals as in our organisation we want to give the access to journals for all users ith out they knowing the passwd.. I copy the page source of the login page of journal and change login and passwd type to hidden and enter the value..in the form.. But this particular journal is giving this following probs.. <INPUT TYPE="hidden" NAME="signin" VALUE="Sign In" TABINDEX="3"> if I change hidden to submit it is working..but i donot want the user to click sigin also..it should directly login to the journal.. Pls help tosolve this problem.. or is there any other way to bypass the login page and enter in to a site if i know the login and passwd.. thanks Is this possible? I remember seeing this somewhere but I don't really remember how to place the info in the address. Is it something like http://test.com@username:password ? Thanks! I have a register and login page and would like to add an autoresponse email. The end result being when people register they have to click a link in their email before being able to login. Essentially to stop fake email addresses being used. All the coding works well but I'm having trouble adding the autoresponder part. The current code is below. Can anyone help? I'll buy you all kinds of cakes and fizzy pop if you can. :-D <?PHP ob_start(); //Connect to enter the information into the fields $link = mysql_connect('localhost','bangers', 'andmashme') or die("Could not connect"); mysql_select_db('bangers') or die("Could not select database"); //Todays date $date = time(); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>BANGERS AND MASH: VIEW PICS LOGIN</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2"> <link href="III.css" rel="stylesheet" type="text/css"> </head> <body ><center> <body bgcolor="white"> <img src="banner.png" width="597" height="159" border="0"> <!-- ----------------------------------------------PALN A PARTY--------------------------------------------------------------------------------------> <div class="leftcontent"> <div class="leftTop">.</div> <p class="boxtext"> <font color="black"><font face="Courier New"> <b>Welcome to the weekly updated... <br> BANGERS AND MASH GALLERY!</b> <br> Take a moment to register, & Existing users proceed to the enter gallery section</p> <p class="boxtext"> <font color="black"> <div class="leftbottom"></div> <div id="clear"></div> <div class="leftTop"></div> <? if ($type == 'login') { //LOG IN AREA $sql_check = mysql_query("SELECT * FROM `gallerytable` WHERE 1 AND `email` LIKE '$email2' LIMIT 0 , 30") or die ("Unable to get results."); $auth_list = mysql_fetch_array($sql_check); function CheckEmail($Email = "") { if (ereg("[[:alnum:]]+@[[:alnum:]]+\.[[:alnum:]]+", $Email)) { return true; } else { return false; } } if (mysql_num_rows($sql_check) > 0 && CheckEmail($email2)) { $email = $auth_list['email']; $cookie_data = $email.':'.$date; setcookie('galleryid', $cookie_data, time()+1118640); echo ' <p align="right" class="boxtext"> <h2>PLEASE WAIT....</h2> </p>'; echo "<meta http-equiv=\"Refresh\" content=\"0; url=gallery2.php?contentfolder=". date("Y") ."\">"; } else { echo ' <p align="centre" class="boxtext" font color="black"> <h2>FAILED</h2> <h2>This email has not been registered with us. <br>Please go back and register in order to view the gallery.</h2> <a href="javascript:history.go(-1)"><img src="back.jpg" width="104" height="41" border="0"></a> </p>'; } } else if ($type == 'register') { // CHECK EMAIL FUNCTION //*********************** function check_email_mx($email) { if( (preg_match('/(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/', $email)) || (preg_match('/^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,3}|[0-9]{1,3})(\]?)$/',$email)) ) { $host = explode('@', $email); if(checkdnsrr($host[1].'.', 'MX') ) return true; if(checkdnsrr($host[1].'.', 'A') ) return true; if(checkdnsrr($host[1].'.', 'CNAME') ) return true; } return false; } // Check if its in there $result=mysql_query("SELECT * FROM `gallerytable` WHERE `email` = '$email'"); // IF email is ok if (!check_email_mx($email)) { echo ' <p align="right" class="boxtext" font color="black"> <h2>EMAIL ERROR</h2> <h2>You have entered an incorrect email. <br> Please click the button below to go back and try again.</h2> <a href="javascript:history.go(-1)"><img src="back.gif" width="104" height="41" border="0"></a> </p>'; } elseif (mysql_num_rows($result) <= 0) { //Puts deatils into the bangers database $insert=mysql_query("INSERT INTO `gallerytable` (`id`, `fname`, `sname`, `email`, `telno`, `date`) VALUES ('', '$f_name', '$s_name', '$email', '$mobile', '$date')")or die('couldn\'t Insert record into bangers database :'.mysql_error()); echo ' <p align="right" class="boxtext" font color="black"> <h2>THANK YOU FOR REGISTERING!!</h2> <h2>Your details have been registered with us and will not <br>o the login section to view images.</h2> <a href="javascript:history.go(-1)"><img src="back.gif" width="104" height="41" border="0"></a> </p>'; } else { echo ' <p align="right" class="boxtext" font color="black"> <h2>REGISTERED</h2> <h2>YOUR DETAILS HAVE ALREADY BEEN REGISTERED WITH US. PLEASE PROCEED TO THE ENTER GALLERY SECTION.</h2> <a href="javascript:history.go(-1)"><img src="back.jpg" width="104" height="41" border="0"></a> </p>'; } } else { echo ' <table width="800" boder="0" align="center"> <table width="600" border="0" align="center"> <tr> <td valign="middle" colspan="2" align="center"><p><img src="register.gif" width="227" height="26" /></p> </td> <td valign="center" colspan="2" align="center"><img src="entergallery.gif" width="227" height="24" /> </td> <td> </td> <tr> <td width="300" valign="middle"> <p><strong><img src="required1.gif" width="227" height="31" /></strong></p> </td> <td width="300" valign="middle">  </td> <td width="300" valign="middle"> <form name="login" method="post" action="'.$_SERVER['PHP_SELF'].'"> <img src="email1.gif" width="227" height="24" /> <td width="300" valign="middle"> <input name="email2" type="text" size="16" class="Field" /> </td> <tr> <td> </td> <td> </td> <td> </td> <td width="300" valign="middle"> <input name="type" type="hidden" value="login"/> <input name="Submit" type="image" class="submit" value="Submit" src="submit.gif" align="right"> </form> </td> <tr> <td width="300" valign="middle"> <form name="register" method="post" action="'.$_SERVER['PHP_SELF'].'"> <p><img src="name1.gif" width="227" height="27"/> <td width="300" valign="middle"> <input name="f_name" type="text" class="Field" id="f_name" size="16"/> <tr> <td width="300" valign="middle"> <p><img src="surname1.gif" width="227" height="28" /> <td width="300" valign="middle"> <input name="s_name" type="text" class="Field" id="s_name" size="16"/> <tr> <td width="300" valign="middle"> <p><img src="email1.gif" width="227" height="24" /> <td width="300" valign="middle"> <input name="email" type="text" size="16" class="Field" /> <tr> <td width="300" valign="middle"> <p><img src="emailconfirm1.gif" width="227" height="25" /> <td width="300" valign="middle"> <input name="confemail" type="text" size="16" class="Field" /> <tr> <td width="300" valign="middle"> <p><img src="mobile1.gif" width="227" height="22" /> <td width="300" valign="middle"> <input name="mobile" type="text" size="16" class="Field" /> </td> <tr> <td width="300" valign="middle"></td> <td width="300" valign="middle"> <input name="type" type="hidden" value="register"/> <input name="Submit" type="image" class="submit" value="Submit" src="submit.gif" align="right"> </p> </form> <br/></td> <td width="5"/> </form> </td> </tr> </table> '; } ?> </p> <div class="leftbottom"></div> </div> <!--END NEWS --> </div> </div> </body> </html> Greetings everyone! I am sort of new to this. Not totally but i am definately more of a hack. i don't really know about the functionality of web pages but am more driven by the look and hyper links. if i click it and it takes me to the right page i am happy. having said all of that here is my attempt so far (it is a purchased template and i am filling in the blanks) www.rmt-corp.com my questions is that i need some help coding the ftp login box. we have many clients and i would like them to be able to go to our site to login to the ftp site. this will let them see any news we may be displaying as well as stop us from emailing a link like we currently do. i have searched for this code and found various version of it but when i look at the html code for my page i get lost pretty quick. if someone would be willing to help just code it for my page specifically i would be eternally greatful. maybe we could work out a per code price TIA!! how do i make a login for my website? i only want it to allow the user of admin and pass of bobys Hi I am relatively new to HTML. I am working on a website because I honestly feel capable of setting it up. I've been scripting using C#(C Sharp) for a little over 5 years, so I get the general gist of how to script and what is required of me. I made the website ericstowing.bravehost.com using very little material and my own codes. I know is not complicated but that was only about 1hr30mins worth of work. More to the point though. I am looking for a tutorial on how to set up a login form, with the ability to actual log on set up data and store it on the website. If anyone has a tutorial of something to this extent, or would like to help me personally I would really appreciate it. Thank you for reading. -Nick |