HTML - Restricting Access To Files / Links Until After Registration
Hi,
Wondering what are some good ways to restrict access to files / links for a visitor until they have registered their details... for example, when a user tries to access a certain file from a download page, they click on the file link >> I want to send them to a registration page (a simple form), and - only once they've filled it out and submitted their details - to send them back to the download page with unrestricted access to that file (or any other resitrcted files). Any suggestions / pointers would be greatly appreciated. Thanks, Similar TutorialsHi, I am trying to restrict access to a certain page on my website. I don't really want to set up a username and password, instead of was thinking of the following 2 things to verify. #1: would be for them to enter an email address that ends in either "@weber.edu" or "@mail.weber.edu". #2: would be for them to have to enter an identification number which must start with a "w" and must have 8 numbers after the w. No more, and no less than 8 numbers. For example: Email address: jay@mail.weber.edu Identification number: W01234567 If those two conditions are met, then they can have access to the page. Any clue how to write the code for that? Thank you very much! Is there any way I can restrict incoming URLs to ONLY one, and redirect it to something else if it isn't from that page? <3 KTHXBAI Hi all I'm not exactly super profficient with HTML but I kinda know what I'm doing. I'm making a html document for the place that i work which stors quite large video files ona server (in the order of 1.5 to 2gig). I have the HTML document on another server, however. Basicaly what i want to do (and this is a very simplified version of my goal but its where the problem lies) is to have links from that HTML to the video files on the video server. So you click the link and it asks you if you want to save it or open it etc.. So this seems fairly simple... i've just got a <a href="\\videoservername\vod$\video_library\example.mpg">Click Here</a> which works but INCREDIBLY SLOWLY. I mean i knew it would take 5 minutes to copy the videos across... which it does if i link to the directory of the video rather than the video itself. So thats all good. But when its linked directly to the video file it takes a good 15 minutes between the 'Save or open' box and the 'where do you want to save' box. Once it does come up it saves in about 5 minutes like expected. I just dont get why it takes so long for the 'where would you like to save' to come up. If anyone knows a way around this or could even exaplain why its like this, it would be greatly appreciated. Thanks Adam Hello, I'm trying to create a little page that auto updates itself whenever new files are added. The system is layered such that I have the top level index.html file, then in the same directory, I can add new folders that contain other index.html files. What I want to do is have the top level index.html file pick up every sub directory, grab the name from the directory, and then create a link to that directory's index.html file and then display it in the top level index.html file. So what I have right now is this: HTML Code: <body> <a href="myFirstDirectory/index.html">myFirstDirectory.html</a> </body> There is other stuff, but this is the part I need help with. As you can see, I also want the name that is displayed to be the same name as the directory. I do not know how to automate this if I have other folders in there like directory2, directory3, etc. Can anyone show me an example of how to do this or walk me through it? Thanks in advance. well long story short someone sent a virus through a clients file upload and the amdin wants to setup a file restriction on the types of files that can be sent in...they want to limit it too .doc and .xls files, how could this be done below is the current code for the file upload: Code: <input name="resume" type="file"/> Hi guys and thanks for reading my post. I am a novice HTML web developer so everything is new to me. Recently I've been really frustrated with IE's script blocking feature. I have been using onmouseover feature that triggers the buttons to change image. I have the script all working and tested in FrontPage, however, any time I go to view the web page, Internet Explorer gives me that little message saying: "To help protect your security, Internet Explorere has restricted this file from showing active content that could access your computer. Click here for options..." I have gone to other web sites which use plenty of onmouseover feature however, and I don't get this message. How are they doing it??? Is there a way to tell IE that the script is harmless or something? Am I using some method that IE says is dangerous? Anyway this is my code <a href="index.html" onmouseover="image0.src='HomeA2.jpg'" onmouseout="image0.src='Home.jpg'"> <img src="Home.jpg" name="image0" border="0" height="42" width="120" alt="Tell A Friend"></a> Anything i can change to prevent IE from blocking it? Please advice me. Greatly Appreciated. Thanks for reading anyway. Hi everyone, I hope I have posted this in the right area. This is my first time posting here. I currently have my main pages listed at the top of my site as graphics (see fussybaby.ca). I would like to potentially remove these graphics and use text links instead - I had the graphics designed for me, so I can't just go in and make new ones, however I'd like to change/rearrange the links and add some new ones. So my question is: How hard is this to do? Is this something I need to hire someone to do for me? Thanks in advance for any advice! Hey, i was wondering if anyone can help me, Ive made a website on angelfire, free hosting at the moment, and i want to create a 'register' form..so people can become members, before viewing a certain part of my site. I dont have a clue how to go about this, so if anyone can explain, im very grateful. thanks. I have dreamweaver cs3 if thats needed? but ive never used it..so i dont have a clue I have been working on building my own website for about two weeks now, and I am trying to make a registration form to allow new users access to the private aspects of my website, such as my FTP server. I have the HTML outline for my registration form here. What I want to have it do is one of two things: either send me an email with the new users information (without using an email client, so no action="mailto:default@email.com"), or save the new users information to a file on my server (this is preferred, but I have no clue how to use php or asp). Could somebody please help me figure this out? It would be greatly appreciated. -CLiB Greetings from Kalyan Hi all, I need a registration form the fields are like Name Mobile Address and when i click on submit button these details will be saved in a text file. I am new to html coding. Please help me regarding this. Thanks P Kalyan Kumar Can anyone point me to a (free or commercial) advanced registration template? (only the HTML/css/Javascript client side part) By advanced I mean: 1. Every form is confirmed to be valid and passwords lengths are checked and compared to be the same error messages are displayed client-side. 2. Some form of a bar indicating how strong the password is. (although not required) 3. The form is sent using Javascript without leaving the page. Thanks in advance, Regards. Hello, I have three courses, .net, j2ee, php with starting dates like 12-01-2007, 13-01-2007, 14-01,2007, the courses will be displayed in drop down box. the question is how to write the html code for this logic, if a user select .net then its starting date should be displayed i.e, 12-01-2007, if a user select j2ee then its starting should be displayed i.e, 13-01-2007. Any help in this matter. Thanks. hey guys...how can we introduce registration process in our website.... please give details coz i dunno anything about it.... Hello peeps, I need badly quick a html registration form code or something i can implent easy in my html code. I need a registration form, when the user fills in the info and press OK, that those info are sent to my email and that the user gets an email with THANK YOU for joining! See the Attach file for the registration form how it needs to look like! Hope someown can help me with this. Thanks! I have a client that would like to have an online registration setup on his website. It is a fitness website in which he would like the client to enter some basic information and pay online for the classes. I have a basic knowledge of HTML so if someone could lead me in the right direction it would be greatly appreciated. Thanks in advance. 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 Hey guys i need a bit of help i have been looking for a snippet of code to add to my site which will allow my users to register an email from my domain [eg:username@mydomain.com] if anyone would be so kind as to steer me in the right direction Any help would be greatly appreciated. Timmy ah sorry i think this should be in php thread Hi, im trying to have a math captcha in my registration form, but having trouble with setting it up in my form. sorry for the large code. If i change the value of $_POST['Submit'] to something else like $_POST['Submit1'] and then same for the math image captcha then it works, but i would like it to work as part of the form, makes sense? lol right now the form just posts the value and doesnt check for captcha values! if someone could help me out here that would be great! thank you. <?php if(isset($_POST['Submit'])){ if($_POST['Submit'] != $_SESSION['security_number']) { $error = ""; } else { $error = ""; } //NEED TO CHECK IF FIELDS ARE FILLED IN if( empty($_POST['name']) && (empty($_POST['email']))){ header("Location:Messages.php?msg=3"); exit(); } if( empty($_POST['pw1']) && (empty($_POST['pw2']))){ header( "Location:Messages.php?msg=4" ); exit(); } $name=$_POST['name']; $email=$_POST['email']; $pw1=$_POST['pw1']; $pw2=$_POST['pw2']; if("$pw1" !== "$pw2" ){ header( "Location:Messages.php?msg=5" ); exit(); } $ip = $_SERVER['REMOTE_ADDR']; //connect to the db server , check if uname exist include('config.php'); $query1=("Select * from user where email='$email'"); $result1= mysql_query($query1); $num1=mysql_num_rows($result1); if ($num1 > 0) {//Email already been used header( "Location:Messages.php?msg=11" ); exit(); }else{ $query=("Select * from user where uname='$name'"); $result= mysql_query($query); $num=mysql_num_rows($result); if ($num > 0) {//Username already exist header( "Location:Messages.php?msg=6" ); exit(); }else{ //if username does not exist insert user details $query=( "INSERT INTO user (uname, pw,email,date_joined,ip,level) VALUES ('$name',md5('$pw1'),'$email',NOW(),'$ip','Normal')"); if (@mysql_query ($query)) { header("location:login.php?reg=1"); exit; } } } mysql_close(); } ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html><!-- InstanceBegin template="/Templates/Auth.dwt.php" codeOutsideHTMLIsLocked="false" --> <head> <!-- InstanceBeginEditable name="doctitle" --> <title>Registration</title> <!-- InstanceEndEditable --> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <!-- InstanceBeginEditable name="head" --> <!-- InstanceEndEditable --> <link href="styleLog.css" rel="stylesheet" type="text/css"> <script language="javascript" type="text/javascript"> function reloadCaptcha() { document.getElementById('captcha').src = document.getElementById('captcha').src+ '?' +new Date(); } </script> </head> <body> <table width="100%" border="0" cellspacing="7" cellpadding="0"> <tr class="temptitle"> <td><!-- InstanceBeginEditable name="EditRegion4" -->New User Registration <!-- InstanceEndEditable --></td> </tr> <tr> <td><!-- InstanceBeginEditable name="EditRegion3" --> <form name="form1" action="register.php" method="post"> <table width="657" border="0"> <tr> <td width="122"><div align="left">Name</div></td> <td width="525"><input name="name" type="text" size="40"></td> </tr> <tr> <td><div align="left">Email</div></td> <td><input name="email" type="text" size="40"></td> </tr> <tr> <td><div align="left">Password</div></td> <td><input name="pw1" type="password" size="40"></td> </tr> <tr> <td ><div align="left">Confirm Password </div></td> <td><input name="pw2" type="password" size="40"></td> </tr> <tr> <td><img src="math_captcha/image.php" alt="Click to reload image" title="Click to reload image" id="captcha" onclick="javascript:reloadCaptcha()" /></td> <td><input type="text" name="Submit" value="what's the result?" onclick="this.value=''" /></td> <td> </tr> <tr> <td></td> <td> <input name="Submit" type="submit" value="Register"></td> </tr> </table> </form> <?=$error?> When we use accesskey attribute we can able to use ALT+(accesskey). is there any way to define access keys for button and links should be allow us to use CTRL+ALT+(accesskey) Thanks Can i have a code to make a password kinda thingy? i want to have some pages that you need a special password for. and how can i make the image in the search bar of my page different, is it <title image url="URL HERE"> |