No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
<?php $con = mysqli_connect("localhost","root","","register"); if (!$con) { die(' connection error: ' . mysql_error()); } $name=$_POST['name']; $fname=$_POST['fname']; $dob=$_POST['dob']; $address=$_POST['address']; $ph_no=$_POST['ph_no']; $email=$_POST['email']; $zip=$_POST['zip']; $phd_marks=$_POST['phd_marks']; $ph_out=$_POST['ph_out']; $ph_study=$_POST['ph_study']; $ms_marks=$_POST['ms_marks']; $ms_out=$_POST['ms_out']; $ms_study=$_POST['ms_study']; $ma_marks=$_POST['ma_marks']; $ma_out=$_POST['ma_out']; $ma_study=$_POST['ma_study']; $ba_marks=$_POST['ba_marks']; $ba_out=$_POST['ba_out']; $ba_study=$_POST['ba_study']; $fa_marks=$_POST['fa_marks']; $fa_out=$_POST['fa_out']; $fa_study=$_POST['fa_study']; $matric=$_POST['matric']; $matric_out=$_POST['matric_out']; $matric_study=$_POST['matric_study']; $exp=$_POST['exp']; $experience=$_POST['experience']; mysqli_select_db("register", $con); $sql="INSERT INTO cv (name, fname, dob, address, … |
|
i am new to ajax. i want to load the contents of one page in the div created in another page using href |
|
re = /^(\d{1,2})-(\d{1,2})-(\d{4})*$/; if((form.dob.value="") || (!re.test(form.dob.value))) { alert("Error:enter Valid date of birth!"); form.dob.focus(); form.dob.style.background = "yellow"; return false; }Inline Code Example Here |
|
<script type='text/javascript' language="javascript"> function validate() { var error=0; var name=document.getElementById("name"); var checkname =/^[a-zA-Z]+$/; var email= document.getElementById("email"); var emailcheck = /^([a-zA-Z0-9_.-])+@([a-zA-Z0-9_.-])+\.([a-zA-Z])+([a-zA-Z])+/; var re_pass; if (name.value == "") { name.style.background = 'Yellow'; error = 1; alert('enter user name!'); } else if ((name.value.length < 5) || (name.value.length > 15)) { name.style.background = 'Yellow'; … |