dimanche 13 mars 2016

Confirmation page on the plugin Formidable Wordpress

I would like that my form redirects to a specific page. This page display the data entered previously on the form.

ID of the confirmation page : page-de-confirmation-du-formulaire-de-test

And its current code :

<?php
    //Get the input.
    $civilite = $_POST['ipadair2'];
    $nom = $_POST['iphone6'];
    $prenom = $_POST['imac'];
    $universite = $_POST['ipadair2'];
    $laboratoire = $_POST['iphone6'];
    $mail = $_POST['imac'];
    $telephone = $_POST['ipadair2'];
    $ad1 = $_POST['iphone6'];
    $ad2 = $_POST['imac'];
    $codepostal= $_POST['imac'];
    $ville= $_POST['imac'];
    $pays= $_POST['imac'];
    $adhesion= $_POST['imac'];
    $tarif= $_POST['imac'];
    $jour= $_POST['imac'];
    $repassup= $_POST['imac'];
    $spealim= $_POST['imac'];

    //Compute totals.

    $stock_total = $ipadair2 + $iphone6 + $imac;
    //Output totals.
    ?>
<table width="559" border="1" cellpadding="5" cellspacing="0">
  <tr>
    <th width="407">Champs</th>
    <th width="126">Valeurs</th>
  </tr>
  <tr>
    <td>Civilité</td>
    <td><?php print $civilite; ?></td>
  </tr>
  <tr>
    <td>Nom</td>
    <td><?php print $nom; ?></td>
  </tr>
  <tr>
    <td>Prénom</td>
    <td><?php print $prenom; ?></td>
  </tr>
  <tr>
    <td>Université / Organisme</td>
    <td><?php print $universite; ?></td>
  </tr>
  <tr>
    <td>Laboratoire / Département</td>
    <td><?php print $laboratoire; ?></td>
  </tr>
  <tr>
    <td>Adresse mail</td>
    <td><?php print $mail; ?></td>
  </tr>
  <tr>
    <td>Téléphone</td>
    <td><?php print $telephone; ?></td>
  </tr>
  <tr>
    <td>Adresse de facturation (1ère partie)</td>
    <td><?php print $ad1; ?></td>
  </tr>
  <tr>
    <td>Adresse de facturation (2ème partie)</td>
    <td><?php print $ad2; ?></td>
  </tr>
  <tr>
    <td>Code postal</td>
    <td><?php print $codepostal; ?></td>
  </tr>
  <tr>
    <td>Ville</td>
    <td><?php print $ville; ?></td>
  </tr>
  <tr>
    <td>Pays</td>
    <td><?php print $pays; ?></td>
  </tr>
  <tr>
    <td>Adhésion à l'association</td>
    <td><?php print $adhesion; ?></td>
  </tr>
  <tr>
    <td>Tarif</td>
    <td><?php print $tarif; ?></td>
  </tr>
  <tr>
    <td>Jour(s) de présence</td>
    <td><?php print $jour; ?></td>
  </tr>
  <tr>
    <td>Repas de gala supplementaires</td>
    <td><?php print $repassup; ?></td>
  </tr>
  <tr>
    <td>Spécificités alimentaires</td>
    <td><?php print $spealim; ?></td>
  </tr>
</table>
</body>
</html>

And finally the form code that currently displays a simple message :

a:19:{s:12:"submit_value";s:9:"Soumettre";s:14:"success_action";s:7:"message";s:11:"success_msg";s:40:"Inscription enregistrée ! A très vite.";s:9:"show_form";i:0;s:7:"akismet";s:0:"";s:7:"no_save";i:0;s:9:"ajax_load";i:0;s:10:"form_class";s:0:"";s:12:"custom_style";s:1:"1";s:11:"before_html";s:225:"<legend class=\"frm_hidden\">[form_name]</legend>
[if form_name]<h3 class=\"frm_form_title\">[form_name]</h3>[/if form_name]
[if form_description]<div class=\"frm_description\">[form_description]</div>[/if form_description]";s:10:"after_html";s:0:"";s:11:"submit_html";s:469:"<div class=\"frm_submit\">
[if back_button]<input type=\"button\" value=\"[back_label]\" name=\"frm_prev_page\" formnovalidate=\"formnovalidate\" class=\"frm_prev_page\" [back_hook] />[/if back_button]
<input type=\"submit\" value=\"[button_label]\" [button_action] />
<img class=\"frm_ajax_loading\" src=\"[frmurl]/images/ajax_loader.gif\" alt=\"Envoi\"/>
[if save_draft]<a href=\"#\" class=\"frm_save_draft\" [draft_hook]>[draft_label]</a>[/if save_draft]
</div>";s:6:"paypal";i:0;s:16:"paypal_item_name";s:0:"";s:19:"paypal_amount_field";s:0:"";s:13:"paypal_amount";s:0:"";s:11:"paypal_list";a:0:{}s:17:"paypal_stop_email";i:0;s:11:"paypal_type";s:0:"";}

Thanks in advance !



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire