hello can somone please tell me why i cannot submit this twice i have a php form doing the validation and mailing but if there are errors in the form filling out it will send back an errorand tell them to fix it, without refreshing the form.
the problem is the seccond time i click submit it does the initial form hide but stays stuck on sending the data to the php form again, could it be a cache issue and if so please show where exactly i should put the data or math multiplier because if i put it in the url by say adding url:'mailer.php' + date(), this then causes the program to fail, so any help would be apprieciated.

$(document).ready(function() {
	var formData = $('#Form').serialize();
	return false;
	function submitForm(formData){
            url: 'mailer.php',
            data: formData,
            dataType: 'json',
            cache: false,
           if(data.success == true){

any help please
thank you in advance.

Re: Ajax, jquery problems 80 80

POST requests should not be cached. You might want to do some logging, what data does the server get, does it respond correctly?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.