[TYPO3-english] Mailformplus Multipage save db
Reinhard Führicht
rf at typoheads.at
Tue Jun 16 14:25:49 CEST 2009
Hi,
this is not possible with mailformplus without changing the code.
But try out the rewrite of mailformplus called Mailformplus MVC [1].
There you can easily add code to store values in the database by adding
an interceptor.
[1] http://forge.typo3.org/projects/show/extension-mailformplusplus
Cheers,
Reinhard
DerMediamatiker wrote:
> 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