hi friends i am having the javascript function where i am making a validation for the an username like below
<script type=“text/javascript”>
$(function() {
$(“.submnick”).click(function()
{
var nick= $(“#nick”).val();
var dataString1 = ‘nick=’ + nick;
var hello=nick.length;
var jump =‘[1]*$’;
if(hello<=3)
{
$(‘.successan’).fadeOut(200).hide();
$(‘.erroran’).fadeOut(200).show();
}
else if(nick==!nick.match(jump))
{
$('.successan').fadeOut(200).hide();
$('.erroran').fadeOut(200).show();
//}
}
else
{
$.ajax({
type: "POST",
url: "joinnick.php",
data: dataString1,
success: function()
{
$('#slick-').hide();
$('#slick-').show();
}
});
}
return false;
});
});
</script>
where i need to combare with the database before posting it to the url php page how can i do it if any body know it please solve this
0-9,/,\,=,+,;,: ↩︎