Tapakan
ту же аяксом только datatr_input передаёшь, а datat_input где?
data:"datat_input=" + datat_input + "&datatr_input=" + datatr_input,
data:"datat_input=" + encodeURIComponent(datat_input) + "&datatr_input=" + encodeURIComponent(datatr_input),
Цитата (Tapakan @ 19.10.2012 - 15:22) |
if ($password = $passwordr) { |
<input id="valid_pass" hidden="" value="TRUE" name="valid_pass">при разных паролях
function validate_name(type) {
if(type == 'email') var data_input = variable("email");
if(type == 'username') var data_input = variable("username");
$.ajax({
url: "http://php.aboutonline-casino.com/registrat.php",
cache: false,
type: "POST",
dataType: "html",
data:'data_input='+ data_input+'&type='+ type,
success: function(html){
if(type == 'email') $("#emailmessage").html(html);
if(type == 'username') $("#usermessage").html(html);
button();
}
});
}
function validate_pass() {
var datat_input = document.getElementById("password");
var datatr_input = document.getElementById("passwordr");
$.ajax({
url: "http://php.aboutonline-casino.com/registrat.php",
cache: false,
type: "POST",
dataType: "html",
data:"datat_input=" + datat_input + "&datatr_input=" + datatr_input,
success: function(html){
$("#passrmessage").html(html);
}
});
}