Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form method="post" class="hotel-search-form">
- <div align="center" class="tm-form-inner">
- <div id="login_errorss" style="color:#F00"></div>
- <label>Company Name</label><br>
- <input type = "text" id = "name" class = "box" placeholder="Name"/><br><br>
- <label>Company Username</label><br>
- <input type="text" id = "sallam" class = "box" placeholder="username"/><br>
- <label>Telephone</label><br>
- <input type = "text" id = "tete" class = "box" placeholder="telephone"/><br>
- <label>email</label><p id="p1" style="color:#F00"></p><br>
- <input type = "text" id = "emem" class = "box" placeholder="telephone"/><br>
- <label>Password</label><br>
- <input type = "password" id = "passpass" class = "box">
- <label>Company Description</label><br>
- <textarea style="width:175px" id="description"></textarea>
- $(document).ready(function() {
- $("#submitAddPatient").click(function(){
- var user = $("#username").val();
- var pass = $("#password").val();
- var first = $("#firstname").val();
- var last = $("#lastname").val();
- var se = $("#sex").val();
- var birth = $("#birthdate").val();
- var phone = $("#phonenumber").val();
- var m1 = $("#m1").val();
- var data = "user=" + user + "&pass=" + pass+ "&first=" + first+ "&last=" +
- last+ "&se=" + se+ "&birth=" + birth+ "&phone=" +
- phone + "&m1=" + m1 ;
- $.ajax({method: "post",
- url:"seccc.php?",
- data: data,
- success: function(data){
- $("#login_errors").html(data); } }); });
- if(!$user || !$pass|| !$first|| !$last || !$se || !$birth || !$phone ||
- !$m1){echo "Please fill all the fields!";}
- else if (!filter_var($m1, FILTER_VALIDATE_EMAIL)){ echo"invalid email";}
- else if (!is_numeric($phone) ){echo "invalid phone number";}
- else if(strlen($phone) <> 8){echo "Phone number must be 8 digits!";}
- else if(strlen($pass) < 5){echo "password at lesat 5 char";}
- else{
- $conc = mysqli_connect("localhost", "root" , "0598985166sallam", "project");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement