WebsiteDays.com create your web site free, Hosting, Coding, E-commerce, Free Website Builder. Download free website builder to create your website! Personal, and ECommerce website builders...

WebsiteDays.com for france arras

Click on your region below to contact a Websitedays.com designer, or Websitedays.com sales person for info about Online Website builder system.

You can also send an email to

and we can forward your enquiry to respective designers in your area.

Agay Agen Aix-en-Provence
Aix-les-Bains Albertville Albi
Algajola Allevard Allinges
Allogny Ambert Amboise
Ambonnay Amiens Ammerschwihr
Ancenis Angers Angouleme
Annecy Annecy le Vieux Annemasse
Antibes Antony Apt
Arbois Archamps Archiac
Argeles-sur-Mer Argentat Argenteuil
Arlanc Arles Arpaillargues
Arras Ars-Laquenexy Artannes-sur-Indre
Asnieres Aubagne Aubervilliers
Aubiere Aubin Aubure
Aumont-Aubrac Auriac du Perigord Auribeau-sur-Siagne
Aurillac Aussois Auvillar
Avensan Avignon Avoriaz
Avranches Ax-les-Thermes Badefols-dAns
Bagneux Balaruc-les-Bains Bandol
Bar-Sur-Aube Barbizon Barcares Le
Barjac Barr Barre-de-Monts La
Baud Bayel Bayeux
Bayonne Baziege Bazoges-en-Pareds
Beaujeu Beaulieu-sur-Dordogne Beaumes-de-Venise
Beaune Beauvoir-sur-Mer Belfort
Belle-Ile-en-Mer Bellegarde sur Valserine Bellegarde-du-Razes
Bellevaux Bergerac Bergheim
Besancon Beynac Beynost
Beziers Bezouotte Biarritz
Bidart Biot Biron
Biscarrosse Blagnac Blere
Blois Boeschepe Bollene
Bondy Bonifacio Bons-en-Chablais
Bordeaux Bormes-les-Mimosas Boulogne
Boulogne-Billancourt Bourg-la-Reine Bourges
Bourgueil Brantome Bras
Brassac Brehemont Bresse La
Brest Breuil Le Brignoles
Brioude Brive Bugue Le
Buzet-sur-Baďse Cabanac Cabrieres-dAvignon
Caen Cagnes-sur-Mer Cagny
Cahors Calais Cambrai
Cambremer Camembert Cancale
Cannes Cantenac Cap-dAgde Le
Cap-dAil Carcassonne Carnac
Carnoux-en-Provence Carpentras Carquefou
Carros Cassis Castellane
Castelnau-de-Montmiral Castelsarrasin Castillon-la-Bataille
Cavaillon Cavalaire-sur-Mer Caylus
Cebazat Cerences Ceret
Cergy Cesson-Sevigne Cestas
Chablis Chalon-sur-Saone Chalons-en-Champagne
Chalus Chamalieres Chambery
Chambon-sur-Lignon Le Chamonix Champagne-Sur-Oise
Champagny-en-Vanoise Champigny-sur-Marne Champs-sur-Marne
Chaniers Chantilly Charolles
Chartres Chasseneuil Chateau-Chinon
Chateaubriant Chateaudun Chateauneuf-de-Gadagne
Chateauneuf-du-Pape Chateaurenard Chatel
Chatellerault Chatou Chaumont
Chenas Chennevieres-sur-Marne Chenoves
Cherbourg Cheylas Le Chigny-les-Roses
Chinon Civray Clairvaux-les-Lacs
Claix Clermont-Ferrand Clermont-lHerault
Clisson Cluny Cluses
Cognac Colle-sur-Loup La Collioure
Colmar Combloux Condom
Contamines-Montjoie Contrexville Corconne
Cordes-sur-Ceil Corte Cotignac
Coulaines Coulommiers Courbevoie
Courcelles de Touraine Courchevel Courneuve La
Cours-la-Ville Courseulles-sur-Mer Cramant
Cremieu Creon Creteil
Creutzwald Crillon le Brave Crolles
Cruet Cudos Curzay-sur-Vonne
Daglan Damery Deauville
Defense La Dieppe Dieulefit
Digne-les-Bains Dijon Dinan
Divonne-les-Bains Dizy Domevre-sur-Aviere
Douai Doue-la-Fontaine Draveil
Ducey Dunkerque Duras
Durtal Ecrosnes Ecueil
Ecully Epernay Epinal
Erbalunga Erstein Esperaza
Eugenie-les-Bains Evian Evreux
Evry Eze Faverges
Feilluns Felletin Ferrals-les-Montagnes
Ferte-Bernard La Foix Fondettes
Fontainebleau Fontcouverte-la-Toussuire Fontenay-sous-Bois
Forcalquier Foret Fouesnant La Forges
Fources Fourgs Les Fousseret Le
Frayssinet Frejus Furiani
Gaillac Galoubet Gap
Gardanne Garde La Garenne-Colombes La
Gassin Geispolsheim Genevraye La
Gennevilliers Gerardmer Geste
Gets Les Gevrey-Chambertin Ghisonaccia
Gif-sur-Yvette Giverny Golfe-Juan
Gordes Gramat Grand Pressigny
Grane Grasse Graulhet
Grenoble Guegon Gundershoffen
Haguenau Hardelot Havre Le
Haybes Heillecourt Herbiers Les
Hochfelden Hoerdt Honfleur
Hossegor Houilles Hourtin
Hyeres Ige Ile de Brehat
Illhaeusern Illzach Isle-sur-la-Sorgue
Issambres Les Issoire Issy-les-Moulineaux
Istres Jard-sur-Mer Jenlain
Joigny Jonvilliers Joue les Tours
Jouques Joyeuse Juan les Pins
LAigle Llle-Rousse La Bastide-Puylaurent
La Cadiere dAzur La Ciotat La Clusaz
La Ferte-Saint-Aubin La Grave La Madone
La Neuville-Aux-Larris La Rochelle La Rochepot
Labege Labruguiere Lacanau
Lagrave Lamalou-les-Bains Lamballe
Lambesc Lamotte-Beuvron Langeais
Langon Lanhelin Lapoutroie
Laudun-lArdoise Laurac-en-Vivarais Lauret
Laval Lege Lege-Cap-Ferret
Lens Les Houches Levallois-Perret
Ligre Lille Limeil-Brevannes
Limoges Lisle-sur-Tarn Loches
Locmariaquer Longueville Longwy
Lons-le-Saunier Lorcy Lorgues
Loudun Lourdes Lozanne
Luberon Ludon-Medoc Lunel
Lurais Luynes Lyon
Macon Mainxe Malakoff
Mandelieu la Napoule Manosque Mans Le
Marcq en Baroeul Margaux Marignane
Marlenheim Marnaz Marne-la-Vallee
Marseille Martel Massy
Matton-et-Clemency Maubourguet Maurepas
Mauroux Maussane les Alpilles Maylis
Megeve Meilhan-sur-Garonne Mende
Menerbes Menton Menuires Les
Mercurey Meribel Merignac
Messery Metz Meylan
Mieussy Miglos Mijoux
Millau Mirabel-aux-Baronnies Molsheim
Moncaret Monguilhem Mons-en-Baroeul
Montaigut-le-Blanc Montamel Montauroux
Montbrun-les-Bains Montceau-les-Mines Montelimar
Montfrin Montignac-Lascaux Montlhery
Montlouis-sur-Loire Montlucon Montmorillon
Montpellier Montreuil Seine-Saint-Denis Montreuil Pas-de-Calais
Morieres les Avignon Morlaix Morzine
Mougins Moustiers-Sainte-Marie Moux
Mouzillon Mulhouse Munster
Mur-de-Barrez Najac Nancy
Nanterre Nantes Narbonne
Nemours Neuf-Brisach Neufchateau
Neufchatel-en-Bray Neuilly-sur-Seine Neuvic
Neuville-en-Ferrain Nice Nimes
Niort Nissan-lez-Enserune Nogent-sur-Marne
Nolay Nuits Saint Georges Nyons
Obernai Olivet Oppede
Orange Orleans Orly
Orsay Orvault Osny
Ostwald Oullins Oyonnax
Paimpol Palaiseau Pamiers
Pantin Paris Parnac
Passy Pau Pauillac
Peisey-Nancroix Perpignan Pessac
Petite-Pierre La Peymeinade Peyrolles
Peyruis Peyzac-le-Moustier Pezenas
Pierrefeu-du-Var Pierrefitte-Nestalas Plagne La
Plazac Pleine-Fougeres Pleneuf-Val-Andre
Plombieres-les-Bains Plumaudan Poitiers
Pont Chateau Pont-de-Montvert Le Pontaumur
Pontgouin Pontivy Pontoise
Pontorson Port-Bail Port-de-Bouc
Port-Grimaud Portes-les-Valence Porto
Porto-Vecchio Pouilly-en-Auxois Prades
Premeaux-Prissey Propriano Puligny-Montrachet
Puteaux Quiberon Quillan
Quimper Rambouillet Ranton
Redorte La Reims Relecq-Kerhuon
Remaisnil Rennes Rennes-le-Chateau
Revel Ribeauville Riberac
Roanne Rocamadour Rocbaron
Roche-Bernard La Rochefort-en-Terre Rochefort-sur-Mer
Rognes Roissy-en-France Romaneche-Thorins
Ronchamp Roquebrune-Cap-Martin Roquebrune-sur-Argens
Roquefort-les-Pins Roscoff Roubaix
Rouen Rouffach Roujan
Roussillon Royat Rueil-Malmaison
Ruffec Rumilly Rungis
Ruoms Sables-dOlonne Les Sadirac
Saint Leons Saint Quentin en Yvelines Saint-Agreve
Saint-Amand-de-Coly Saint-Amans-Soult Saint-Aygulf
Saint-Barthelemy dAnjou Saint-Bauzeil Saint-Bertrand-de-Comminges
Saint-Bonnet-du-Gard Saint-Briac-sur-Mer Saint-Brieuc
Saint-Claude Saint-Cloud Saint-Cyr-en-Talmondais
Saint-Denis Saint-Disdier-en-Devoluy Saint-Emilion
Saint-Etienne Saint-Fargeau Saint-Florent
Saint-Flour Saint-Galmier Saint-Gaudens
Saint-Genis-de-Fontaines Saint-Germain-de-Belves Saint-Germain-en-Laye
Saint-Germain-sur-lArbresle Saint-Gervais Saint-Gervais-dAuvergne
Saint-Gilles Saint-Hilaire-de-Riez Saint-Hilaire-en-Lignieres
Saint-Jean-Cap-Ferrat Saint-Jean-de-Losne Saint-Jean-de-Maurienne
Saint-Jean-de-Sixt Saint-Jean-en-Royans Saint-Jean-Saverne
Saint-Jeannet Saint-Julien-en-Genevois Saint-Lary-Soulan
Saint-Laurent-de-Cerdans Saint-Laurent-du-Var Saint-Leu-la-Foret
Saint-Magne-de-Castillon Saint-Malo Saint-Mande
Saint-Martin-dArdeche Saint-Martin-de-Belleville Saint-Martin-Valmeroux
Saint-Matre Saint-Medard-en-Jalles Saint-Paul
Saint-Paul-de-Vence Saint-Paul-les-Trois-Chateaux Saint-Pons-de-Thomieres
Saint-Porchaire Saint-Quentin Saint-Raphael
Saint-Remy-de-Provence Saint-Romain Saint-Saturnin-les-Apt
Saint-Soupplets Saint-Victor-la-Coste Sainte Alvere
Sainte-Croix-du-Mont Sainte-Foy-la-Grande Sainte-Foy-Tarentaise
Sainte-Maure-de-Touraine Sainte-Maximin Saintes
Saisies Les Salignac-Eyvignes Sallanches
Salles-Curan Salon de Provence Salvagnac
Samoëns Sanary-sur-Mer Sancerre
Santenay Sarlat-la-Caneda Sarrians
Sartrouville Saugues Saulieu
Saumur Sausset-Les-Pins Sauvagnac
Saverne Savignac-les-eglises Scionzier
Seignelay Seillans Selestat
Semussac Senlis Sens
Serre-Chevalier Sete Sevres
Seyne-sur-Mer La Seyssuel Sezanne
Sierentz Sigy-le-Chatel Solenzara
Sophia Antipolis Soreze Sos
Soufflenheim Souillac Soulac-sur-Mer
Soulatge Soustons St Andre de Roquelongue
St Leon sur Vezere St Martin de Castillon St Tropez
St-Pierre-Quiberon St-Saens Strasbourg
Suevres Suresnes Tain-lHermitage
Taize Talence Talloires
Tarascon Tautavel Terraube
Thann Theoule-sur-Mer Thiers
Thieux Thor Le Thorens-Glieres
Tignes Tonneins Toul
Toulon Toulouse Touquet Le
Touquin Tours Tourtour
Treport Le Trinite-sur-Mer La Trouville
Troyes Turckheim Ulis Les
Uriage-les-bains Uzes Uztaritz
Val-dIsere Val-Thorens Valbonne
Valence Valflaunes Vallauris
Vallery Vallet Vallon-Pont-dArc
Vals-les-Bains Vannes Vanves
Varages Varenne-Saint-Hilaire La Vars
Vaucresson Vaulx-en-Velin Vauvert
Velizy-Villacoublay Vence Vendenheim
Venosc Vensat Ventabren
Ventron Vergisson Vergoncey
Vernon Versailles Verteillac
Vertus Vichy Villard-de-Lans
Villard-Reculas Ville Villefranche
Villefranche-de-Lauragais Villejuif Villemarechal
Villeneuve Villeneuve dAscq Villers-le-Lac
Villeurbanne Villie-Morgon Vincennes
Vinzelles Visan Vitry-sur-Seine
Vittel Voiron Vosne-Romanee
Vougeot Vouziers Voves
Wisembach

»   Developing a Login System with PHP and MySQL

Article submitted in category: Web Design And Development
Tags: | password | user | login | form | system | input | fields | used | email | excerpt | component | mysql |

Developing a Login System with PHP and MySQL by: John L This article is written by daBoss. daBoss is the Webmaster of Designer Banners. daBoss can be contacted at sales (at) designerbanners (dot) com. Developing a Login System with PHP and MySQL Most interactive websites nowadays would require a user to log in into the website’s system in order to provide a customized experience for the user. Once the user has logged in, the website will be able to provide a presentation that is tailored to the user’s preferences. A basic login system typically contains 3 components: The component that allows a user to register his preferred login id and password The component that allows the system to verify and authenticate the user when he subsequently logs in The component that sends the user’s password to his registered email address if the user forgets his password Such a system can be easily created using PHP and MySQL. Component 1 – Registration Component 1 is typically implemented using a simple HTML form that contains 3 fields and 2 buttons: A preferred login id field A preferred password field A valid email address field A Submit button A Reset button Assume that such a form is coded into a file named register.html. The following HTML code excerpt is a typical example. When the user has filled in all the fields, the register.php page is called when the user clicks on the Submit button. [form name="register" method="post" action="register.php"> [input name="login id" type="text" value="loginid" size="20"/>[br> [input name="password" type="text" value="password" size="20"/>[br> [input name="email" type="text" value="email" size="50"/>[br> [input type="submit" name="submit" value="submit"/> [input type="reset" name="reset" value="reset"/> [/form> The following code excerpt can be used as part of register.php to process the registration. It connects to the MySQL database and inserts a line of data into the table used to store the registration information. @mysql_connect("localhost", "mysql_login", "mysql_pwd") or die("Cannot connect to DB!"); @mysql_select_db("tbl_login") or die("Cannot select DB!"); $sql="INSERT INTO login_tbl (loginid, password and email) VALUES (".$loginid.”,”.$password.”,”.$email.”)”; $r = mysql_query($sql); if(!$r) { $err=mysql_error(); print $err; exit(); } The code excerpt assumes that the MySQL table that is used to store the registration data is named tbl_login and contains 3 fields – the loginid, password and email fields. The values of the $loginid, $password and $email variables are passed in from the form in register.html using the post method. Component 2 – Verification and Authentication A registered user will want to log into the system to access the functionality provided by the website. The user will have to provide his login id and password for the system to verify and authenticate. This is typically done through a simple HTML form. This HTML form typically contains 2 fields and 2 buttons: A login id field A password field A Submit button A Reset button Assume that such a form is coded into a file named authenticate.html. The following HTML code excerpt is a typical example. When the user has filled in all the fields, the authenticate.php page is called when the user clicks on the Submit button. [form name="authenticate" method="post" action="authenticate.php"> [input name="login id" type="text" value="loginid" size="20"/>[br> [input name="password" type="text" value="password" size="20"/>[br> [input type="submit" name="submit" value="submit"/> [input type="reset" name="reset" value="reset"/> [/form> The following code excerpt can be used as part of authenticate.php to process the login request. It connects to the MySQL database and queries the table used to store the registration information. @mysql_connect("localhost", "mysql_login", "mysql_pwd") or die("Cannot connect to DB!"); @mysql_select_db("tbl_login") or die("Cannot select DB!"); $sql="SELECT loginid FROM login_tbl WHERE loginid=’".$loginid.”’ and password=’”.$password.”’”; $r = mysql_query($sql); if(!$r) { $err=mysql_error(); print $err; exit(); } if(mysql_affected_rows()==0){ print "no such login in the system. please try again."; exit(); } else{ print "successfully logged into system."; //proceed to perform website’s functionality – e.g. present information to the user } As in component 1, the code excerpt assumes that the MySQL table that is used to store the registration data is named tbl_login and contains 3 fields – the loginid, password and email fields. The values of the $loginid and $password variables are passed in from the form in authenticate.html using the post method. Component 3 – Forgot Password A registered user may forget his password to log into the website’s system. In this case, the user will need to supply his loginid for the system to retrieve his password and send the password to the user’s registered email address. This is typically done through a simple HTML form. This HTML form typically contains 1 field and 2 buttons: A login id field A Submit button A Reset button Assume that such a form is coded into a file named forgot.html. The following HTML code excerpt is a typical example. When the user has filled in all the fields, the forgot.php page is called when the user clicks on the Submit button. [form name="forgot" method="post" action="forgot.php"> [input name="login id" type="text" value="loginid" size="20"/>[br> [input type="submit" name="submit" value="submit"/> [input type="reset" name="reset" value="reset"/> [/form> The following code excerpt can be used as part of forgot.php to process the login request. It connects to the MySQL database and queries the table used to store the registration information. @mysql_connect("localhost", "mysql_login", "mysql_pwd") or die("Cannot connect to DB!"); @mysql_select_db("tbl_login") or die("Cannot select DB!"); $sql="SELECT password, email FROM login_tbl WHERE loginid=’".$loginid.”’”; $r = mysql_query($sql); if(!$r) { $err=mysql_error(); print $err; exit(); } if(mysql_affected_rows()==0){ print "no such login in the system. please try again."; exit(); } else { $row=mysql_fetch_array($r); $password=$row["password">; $email=$row["email">; $subject="your password"; $header="from:you@yourdomain.com"; $content="your password is ".$password; mail($email, $subject, $row, $header); print "An email containing the password has been sent to you"; } As in component 1, the code excerpt assumes that the MySQL table that is used to store the registration data is named tbl_login and contains 3 fields – the loginid, password and email fields. The value of the $loginid variable is passed from the form in forgot.html using the post method. Conclusion The above example is to illustrate how a very basic login system can be implemented. The example can be enhanced to include password encryption and additional functionality – e.g. to allow users to edit their login information. - Used with the author's permission. About The Author Used with the author's permission. This article is written by daBoss. daBoss is the Webmaster of Designer Banners. daBoss can be contacted at sales (at) designerbanners (dot) com. http://www.designerbanners.com/ This article was posted on January 09, 2005