[TYPO3-english] Mailformplus Multipage save db

Fabian Fischer dermediamatiker at gmail.com
Wed Jun 17 10:50:14 CEST 2009


Yes, it is:

I could do it with jquery / axja / php
I just made a manual entry to the typo3 db!

works great.

greets, fabian

2009/6/16 Reinhard Führicht <rf at typoheads.at>:
> 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!
>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>



-- 
---------------------------------------------------------------------
Freundliche Grüsse

DerMediamatiker
Fabian Fischer


More information about the TYPO3-english mailing list