Php code for validating registration form web 2 dating sites

Lets see create the registration form in PHP , Mysql, HTML.Create database db_name ie, Create database new where new is my database name Then you've to use below Mysql query for use created database.Use db_name ie, Use new After finished database and table creation, you need to create front end design which can be viewed by users. Using below HTML code to create registration form in HTML.After created form in HTML, it should not be present user attractable one.$name=$_POST['name']; $password=$_POST['password']; $mail=$_POST['mail']; $q=mysql_query("select * from login where name='".$name."' or mail='".$mail."' ") or die(mysql_error()); $n=mysql_fetch_row($q); if($n0) { $er='The username name '.$name.' or mail '.$mail.' is already present in our database'; } else { $insert=mysql_query("insert into login values('".$name."','".$password."','".$mail."')") or die(mysql_error()); if($insert) { $er='Values are registered successfully'; } else { $er='Values are not registered'; } } body { color:white; font-size:14px; } .contact { text-align:center; background: none repeat scroll 0% 0% #8FBF73; padding: 20px 10px; box-shadow: 1px 2px 1px #8FBF73; border-radius: 10px; width:520px; } #name, #password, #mail { width: 250px; margin-bottom: 15px; background: none repeat scroll 0% 0% #AFCF9C; border: 1px solid #91B57C; height: 30px; color: #808080; border-radius: 8px; box-shadow: 1px 2px 3px; } #submit { background:none repeat scroll 0% 0% #8FCB73; display: inline-block; padding: 5px 10px; line-height: 1.05em; 0) { $er='The username name '.$name.' or mail '.$mail.' is already present in our database'; } else { $insert=mysql_query("insert into login values('".$name."','".$password."','".$mail."')") or die(mysql_error()); if($insert) { $er='Values are registered successfully'; } else { $er='Values are not registered'; } } } ?$(document).ready(function() { $('#submit').click(function() { var name=Element By Id('name').value; var password=Element By Id('password').value; var mail=Element By Id('mail').value; var chk = /^([\w-\.][email protected]([\w-]+\.)+[\w-]{2,4})?

Your registration form should be made in HTML and the values are stored in Mysql using PHP.

chk.test(mail)) { $('#er').html('Enter valid email'); return false; } }); }); Now your table contains user details.

chk.test(mail)) { $('#er').html('Enter valid email'); return false; } }); }); Then you need to write server side script to store values into database.

First you make connection to Mysql database to store user values using PHP. Add below PHP codes Here is the PHP code for insert user data into Mysql database.

So you need to add CSS styles to HTML form in order to make form colorful. body { color:white; font-size:14px; } .contact { text-align:center; background: none repeat scroll 0% 0% #8FBF73; padding: 20px 10px; box-shadow: 1px 2px 1px #8FBF73; border-radius: 10px; width:520px; } #name, #password, #mail { width: 250px; margin-bottom: 15px; background: none repeat scroll 0% 0% #AFCF9C; border: 1px solid #91B57C; height: 30px; color: #808080; border-radius: 8px; box-shadow: 1px 2px 3px; } #submit { background:none repeat scroll 0% 0% #8FCB73; display: inline-block; padding: 5px 10px; line-height: 1.05em; $(document).ready(function() { $('#submit').click(function() { var name=Element By Id('name').value; var password=Element By Id('password').value; var mail=Element By Id('mail').value; var chk = /^([\w-\.][email protected]([\w-]+\.)+[\w-]{2,4})?$/; if(name=='') { $('#er').html('Enter your name'); return false; } if(password=='') { $('#er').html('Enter your password'); return false; } if(mail=='') { $('#er').html('Enter your mail'); return false; } if(!

uefa-europa-league.ru

68 Comments

  1. Pingback:

  2. eric   •  

    Before a long list of women started coming forward to accuse the 78-year-old comedian of drugging and sexual assault, Playboy Playmate Cynthia Myers alleged that she personally witnessed Bill Cosby drug women in order to have sex with them, according to Charlotte Kemp, author of a newly released book entitled “My stomach still turns when I see Bill Cosby in his ads sitting with a bunch of youngsters.

  3. eric   •  

    is unlike any other casual dating, hookup sites or classifieds in that it provides a much more real-time environment online or on your mobile device in the United States, United Kingdom and Canada.

  4. eric   •  

    &who=r,rxq W3q J0VARK85pp F8Rkg CIUAK66R5yc Hj_Lx E58DH3SUbp FXU7t0Amy4ymub_2o UPMNml T3Ia TTmw KXAz Dmk AXPo MN/g_ofbj BVz58EXm Pg Jevs XVif ZJm9u Iu/Fikj&geonames_reg=1' } document.= link; } self.link_bottom = function (stream_name,online) { if ( stream_name == 'Blocked' ) { var link = '/p/cams/view.cgi?

  5. eric   •  

    In California, except for a few restrictions relating to real and personal property, a minor may also make valid legal contracts.

  6. eric   •  

    Although the i Phone 3GS currently runs i OS 4.3.3, due to its older hardware the performance lags behind the i Phone 4.

  7. eric   •  

    I have never watched this show at all until yesterday. Although Flavor Flav picked her as the winner of last season's show, the pair announced shortly thereafter that they are no longer romantically involved and will remain just friends. Read this article and see why he tends to be so endearing.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>