[TYPO3-english] Mailformplus Multipage save db

DerMediamatiker dermediamatiker at gmail.com
Tue Jun 16 12:18:37 CEST 2009


Hi there

typo3: 4.2.6
mailformplus: 4.0.13


i use mailformplus with a multipageform. Is there a way to submit the
form data and store the values in the db before the end of the form?

Example my form has 5 steps, but if you choose one way it ends on
step3 and then you were forwarding to a payment service but before
that it should store the values in my db...any idea?

i tried it with:
plugin.tx_thmailformplus_pi1.multiPage.3.js = formSubmit();

so i can make my own js function before the next step.
But i couldn't store my values in the db...

tried something like this:

function formSubmit(){
	
	$(document).ready(function(){
		$("form#form_mp").submit(function() {

		//alert($('#firstname').attr('value'));
		//alert($('#lastname').attr('value'));
	
		// we want to store the values from the form input box, then send
via ajax below
		var fname     = $('#firstname').attr('value');
		var lname     = $('#lastname').attr('value');
	
			$.ajax({
				type: "POST",
				url: "../_plugins/mailFormPlus/ajax.php",
				data: "firstname="+ fname +"& lastname="+ lname,
				success: function(){
					alert("hurra!");
				}
			});
		return false;
		});
});
		
}


thx!


More information about the TYPO3-english mailing list