I have a registration form which is processed by using javascript and php. First I show registration.php and data from it is sended with ajax to registration_process.php
<form id="registration">
Name<input type="name" id="name" />
Password<input type="password" id="password" />
</form>
<script>
$(document).ready(function(){
$('#submit').click(function() {
var name=$('#name').val();
var password=$('#password').val();
//then it sends those data with ajax to registration.php
...
</script>
registration_process.php
<?
if($_POST[password]){
$password=$_POST[password]
...
}
?>
The problem is that is probably not secure way. Is any way to encrypt value of input? For example something like this
var name=$('#name').encrypt().val();
tnx!