Forums

strange data from configurator

cescobiz 23 Jan, 2012
two mounth ago, thanks to grayhead support, i have built a configurator for my site.
It works fine, but sometime it return a strange email with strange data.
Configurator is a multipage, built in J1.5 (CF V3), in the email i have made a result page like this:
<p><strong> Risultato prodotti dal configuratore on-line:</strong></p>
<table width="100%" border="0" cellspacing="5">
  <!-- risposta 1.1 -->
   <?php
if($posted['radio0'] == 'NO'){echo ' <tr><td><label for="1">cod.111 CRMVILLAGE VTE STD</label>';}
?>
  <!-- risposta 3.1 -->
   <?php
if($posted['radio2'] == 'SI'){echo ' <tr><td><label for="2">cod. Migrazione</label>';}
?>
  <!-- risposta 6.1 - 6.2 - 6.3 -->
   <?php
if($posted['radio4'] == 'Mio server'){echo ' <tr><td><label for="3">cod.112 Installazione presso cliente su database MySQL oppure cod.137 Installazione presso cliente su database Oracle</label>';}
?>
  <!-- risposta 8.1 - 8.2 - 8.3 -->
   <?php
if($posted['radio9'] == '1-10'){echo ' <tr><td><label for="6">cod.130 Servizio Cloud LIGHT</label>';}
?>
<?php
if($posted['radio9'] == '11-30'){echo ' <tr><td><label for="7">cod.131 Servizio Cloud STANDARD</label>';}
?>
<?php
if($posted['radio9'] == '31-100'){echo ' <tr><td><label for="8">cod.131 Servizio Cloud PROFESSIONAL</label>';}
?>
  <!-- risposta 9.1 -->
  <?php
if($posted['radio10'] == 'SI'){echo ' <tr><td><label for="9">cod.129 CRMVILLAGE VTE GOLD</label>';}
?>
  <!-- risposta 11 -->
  <?php
if($posted['radio8'] == 'SI'){echo ' <tr><td><label for="10">cod.115 Integrazione STANDARD</label>';}
?>
<?php
if($posted['radio8'] == 'NO'){echo ' <tr><td><label for="11">cod.116 Integrazione via ODBC</label>';}
?>
  <!-- risposta 12.1 -->
  <?php
if($posted['radio11'] == 'SI'){echo ' <tr><td><label for="12">cod.118 Offline</label>';}
?>
  <!-- risposta 14.1 - 14.2 -->
  <?php
if($posted['radio12'] == 'SI, ma sto usando MAIL-UP'){echo ' <tr><td><label for="13">cod.128 Integrazione MAIL-UP</label>';}
?>
<?php
if($posted['radio12'] == 'SI'){echo ' <tr><td><label for="14">cod.119 NEWSLETTER</label>';}
?>
  <!-- risposta 15 -->
  <?php
if($posted['radio13'] == '5000'){echo ' <tr><td><label for="15">cod. SMTP1</label>';}
?>
<?php
if($posted['radio13'] == '10000'){echo ' <tr><td><label for="16">cod. SMTP2</label>';}
?>
<?php
if($posted['radio13'] == '20000'){echo ' <tr><td><label for="17">cod. SMTP3</label>';}
?>
  <!-- risposta 16.1 -->
  <?php
if($posted['radio14'] == 'SI'){echo ' <tr><td><label for="18">cod. Prepagato 1000 FAX</label>';}
?>
  <!-- risposta 17.1 -->
  <?php
if($posted['radio15'] == 'SI'){echo ' <tr><td><label for="19">cod. Prepagato 1000 SMS</label>';}
?>
  <!-- risposta 18.1 -->
  <?php
if($posted['radio16'] == 'SI'){echo ' <tr><td><label for="20">cod.120 Mail Connector</label>';}
?>
  <!-- risposta 19.1 -->
  <?php
if($posted['radio17'] == 'SI'){echo ' <tr><td><label for="21">cod.127 Active Sync</label>';}
?>
  <!-- risposta 20.1 -->
  <?php
if($posted['radio18'] == 'SI'){echo ' <tr><td><label for="22">cod.121 Mail Query</label>';}
?>
  <!-- risposta 21.1 -->
  <?php
if($posted['radio19'] == 'SI'){echo ' <tr><td><label for="23">cod.114 Tutoring online oppure cod.126 Giornata di formazione</label>';}
?>
</table>
<!-- end dati inseriti -->
<br>

<p><strong>Partner scelto:</strong></p>
<table width="100%" border="0" cellspacing="5">
<?php
if($posted['check0'] == 'Kirateck Srl'){echo ' <tr><td><label for="check00">Kirateck Srl</label></td></tr>';}
?>
<?php
if($posted['check1'] == 'QSA di Cortiana M'){echo ' <tr><td><label for="check01">QSA di Cortiana M</label></td></tr>';}
?>
<?php
if($posted['check2'] == 'Arcadia Tecnologie Srl'){echo ' <tr><td><label for="check02">Arcadia Tecnologie Srl</label></td></tr>';}
?>
<?php
if($posted['check3'] == 'Beta80 SpA'){echo ' <tr><td><label for="check03">Beta80 SpA</label></td></tr>';}
?>
<?php
if($posted['check4'] == 'Durante SpA'){echo ' <tr><td><label for="check04">Durante SpA</label></td></tr>';}
?>
<?php
if($posted['check5'] == 'Everis Italia SpA'){echo ' <tr><td><label for="check05">Everis Italia SpA</label></td></tr>';}
?>
<?php
if($posted['check6'] == 'Project Team Srl'){echo ' <tr><td><label for="check06">Project Team Srl</label></td></tr>';}
?>
<?php
if($posted['check7'] == 'CED Srl'){echo ' <tr><td><label for="check07">CED Srl</label></td></tr>';}
?>
<?php
if($posted['check8'] == 'Infodati Srl'){echo ' <tr><td><label for="check08">Infodati Srl</label></td></tr>';}
?>
<?php
if($posted['check9'] == 'Kproconsulting di Riflessi F.'){echo ' <tr><td><label for="check09">Kproconsulting di Riflessi F.</label></td></tr>';}
?>
<?php
if($posted['check10'] == 'B2A Srl'){echo ' <tr><td><label for="check10">B2A Srl</label></td></tr>';}
?>
<?php
if($posted['check11'] == 'e-Cons Srl'){echo ' <tr><td><label for="check11">e-Cons Srl</label></td></tr>';}
?>
<?php
if($posted['check12'] == 'Pietro Rivi'){echo ' <tr><td><label for="check12">Pietro Rivi</label></td></tr>';}
?>
<?php
if($posted['check13'] == 'Scamper Srl'){echo ' <tr><td><label for="check13">Scamper Srl</label></td></tr>';}
?>
<?php
if($posted['check14'] == 'Readytec SpA'){echo ' <tr><td><label for="check14">Readytec SpA</label></td></tr>';}
?>
<?php
if($posted['check15'] == 'Asernet Srl'){echo ' <tr><td><label for="check15">Asernet Srl</label></td></tr>';}
?>
<?php
if($posted['check16'] == 'IT&T Srl'){echo ' <tr><td><label for="check16">IT&T Srl</label></td></tr>';}
?>
<?php
if($posted['check17'] == 'Digital Network Srl'){echo ' <tr><td><label for="check17">Digital Network Srl</label></td></tr>';}
?>
</table>
<br>
<br>

<p><strong>Dati del richiedente:</strong></p>
<table width="300" border="0" cellspacing="5">
  <tr>
    <td width="40%">Nome:</td>
    <td>{name_prev}</td>
  </tr>
  <tr>
    <td>Cognome:</td>
    <td>{surname_prev}</td>
  </tr>
  <tr>
    <td>Azienda:</td>
    <td>{company_prev}</td>
  </tr>
  <tr>
    <td><p>Telefono:</p></td>
    <td>{tel_prev}</td>
  </tr>
  <tr>
    <td>E-Mail:</td>
    <td>{email}</td>
  </tr>
  <tr>
    <td>Provincia:</td>
    <td>{province_prev}</td>
  </tr>
  <tr>
    <td>N° Utenti CRM:</td>
    <td>{utentiprevisti_prev}</td>
  </tr>
</table>


My problem is this: sometimes, result for user data (nome, cognome, azienda, telefono, email, provincia, n°utenti crm) is undefined or {name_prev}, {surname_prev}, ecc.
I don't know why... can you give me some suggestion ?
many thanks

have a nice day

francesco
Max_admin 23 Jan, 2012
Hi,

Do you have the anti spam enabled ? your problem may happen when somebody goes to the submit url directly, or through a js disabled browser if you have a js validation for fields, you should have captcha or server side validation to block this.

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
This topic is locked and no more replies can be posted.