amzn_assoc_placement = "adunit0";
amzn_assoc_tracking_id = "sellingon-20";
amzn_assoc_ad_mode = "search";
amzn_assoc_ad_type = "smart";
amzn_assoc_marketplace = "amazon";
amzn_assoc_region = "US";
amzn_assoc_default_search_phrase = "Beauty";
amzn_assoc_default_category = "All";
amzn_assoc_linkid = "8a5aeb9d02c991348d0d037e1d535d71";
amzn_assoc_design = "in_content";
amzn_assoc_title = "Search your favorites but";
Saturday, January 19, 2019
form validation
function formsubmit() { var empname = document.getElementById('emp_name').value; var email = document.getElementById('email').value; var phone = document.getElementById('phone').value; var address = document.getElementById('address').value; var username = document.getElementById('username').value; var pwd = document.getElementById('password').value; //store all the submitted data in astring. var formdata = 'empname=' + empname + '&emailid=' + email + '&phn=' + phone + '&address=' + address +'&uname=' + username+ '&password=' + pwd; // validate the form input if (empname == '' ) { alert("Please Enter Employee Name"); return false; } if(email == '') { alert("Please Enter Email id"); return false; } if(username == '') { alert("Please Enter Username"); return false; } if(pwd == '') { alert("Please Enter Password"); return false; } else { // AJAX code to submit form. $.ajax({ type: "POST", url: "storeempdata.php", //call storeemdata.php to store form data data: formdata, cache: false, success: function(html) { alert(html); } }); } return false; }
Subscribe to:
Post Comments (Atom)
form validation
function formsubmit ( ) { var empname = document .getElementById ( 'emp_name' ). value ; var email = document .getElem...
-
<!DOCTYPE html> <html> <title>basic encruption example</title> <head> <?php // DEFINE our cipher ...
-
PHP - Sacar XSS function RemoveXSS($val) { $val = preg_replace('/([\x00-\x08,\x0b-\x0c,\x0e-\x19])/', '', $val); // ...
No comments:
Post a Comment