toggle menu

Hi all, 

I am new to PHP and my project's requirement is to store the data in database through form, submitted by end users, so i need to secure my code from XSS attacks and filter data. Can anyone guide me for the same. I am using Core PHP (OOP's) not any framework.

Thanks in advance :)

 

  • 1 like
  • 0 comment

Complete Solution here:

The main difference between validate() and valid()

Jquery validate() is execute on form submit with submit button while

jquery valid() is execute on click button event, this is very usefull to validate field  in modal box and validate the field without submit form 

 

add rules in jquery validate() method

 

$(document).ready(function(){

$("#formid").validate({//form id 

rules: {

emailid: {/field name

required: true,

email: true

}

}

});

});

 

add rules in jquery valid() method

$(document).ready(function(){

var form = $( "#forgotpwdfrm" );//form id 

form.validate({//define rules 

rules: {

uname: {//field name uname

required: true,

minlength: 8

},

mobile: {//field name mobile

required: true,

}

}

});

$('#forgotpwd').click(function(){//on click event

alert( "Valid: " + form.valid() );//you can write your logic here 

 

});

});

 

  • 1 like
  • 0 comment

I have to show a popup message on my website if my mobile app installs then call for access mobile app & if not installed then call for download app.

 

Anyone have an idea with how to do with javascript, please suggest.

  • 1 like
  • 1 comment

Dhananjay Kumar20 Jun at 02:06

I have reviewed lots and doing R&D, but not getting the solution.
Finally, we have done the below things.
1) App installation with store Device Number and Device Name using web-service.
2) On the website with help of javascript getting mobile Device Number and Device Name and that's search inside the database and accordingly showing the message app installed or not.





I want to call my developed outside javascript (or jquery) function inside the google-map initialized function.

  • 0 like
  • 0 comment