Jump to content

Ajutor Script Php Trimitere Formular Cerere Oferta


Recommended Posts

Posted

Are cineva idee cum pot rezolva acest forumular pentru a putea primi si ceva pe email ?

<form action="trimite-oferta.php" id="formular" method="post">
    <center>
      <table width="93%" border="0" cellspacing="5" cellpadding="5" id="oferta-pvc">
        <tr>
          <td valign="top"><label for="Nume client">Nume:</label>
          </td>
          <td valign="top"><input name="Nume_client" type="text" id="Nume_client">
            * </td>
        </tr>
        <tr>
          <td valign="top"><label for="Firma">Firma: </label>
           
          </td>
          <td valign="top"><input name="Firma" type="text" id="Firma">
            </td>
        </tr>
        <tr>
          <td valign="top"><label for="Adresa">Adresa:</label></td>
          <td valign="top"><input name="Adresa" type="text" id="Adresa">
            *</td>
        </tr>
        <tr>
          <td valign="top"><label for="Telefon">Telefon:</label>            
          </td>
          <td valign="top"><input name="Telefon" type="text" id="Telefon">
            *</td>
        </tr>
        <tr>
          <td valign="top"><label for="Emailul">Email:</label>
          </td>
          <td valign="top"><input name="Emailul" type="text" id="Emailul">
            *</td>
        </tr>
        <tr>
          <td valign="top"><label for="Tip contact">Modalitate de contact:</label>
          </td>
          <td valign="top">
            <select name="Tip_contact" id="Tip_contact">
              <option selected>Doresc sa ma contactati pentru o oferta</option>
              <option>Voi da detalii tehnice mai jos</option>
            </select>
          </td>
        </tr>
        <tr align="center">
          <td colspan="2" valign="top">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td>
				<hr size="1" />
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="299"><table width="298" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td colspan="2">
                              <input name="Canat_fix" type="checkbox" id="b12" value="Bifat">
                              <b>Canat fix</b></td>
                          </tr>
                          <tr>
                            <td colspan="2">Dimensiuni:</td>
                          </tr>
                          <tr>
                            <td width="97" align="center">A</td>
                            <td width="201"><input name="canat_fix_a" type="text" id="canat_fix_a">
                              mm</td>
                          </tr>
                          <tr>
                            <td align="center">B</td>
                            <td><input name="canat_fix_b" type="text" id="canat_fix_b">
                              mm</td>
                          </tr>
                          <tr>
                            <td>Nr Buc: </td>
                            <td><input name="canat_fix_buc" type="text" id="canat_fix_buc">
                            </td>
                          </tr>
                          <tr>
                            <td>Tip Sticla: </td>
                            <td><select name="canat_fix_sticla" id="canat_fix_sticla">
                            <option>--</option>
                            <option value="Clar">Clar
                            <option value="LowE">LowE                            
                              </select>
                            </td>
                          </tr>
                        </table>
                      </td>
                      <td width="221" align="center" valign="bottom"><img src="img/ferestre-pvc/f1.jpg" width="111" height="155"></td>
                    </tr>
                  </table>
                </td>
              </tr>
              <tr>
                <td>Observaţii:
                  <textarea name="canat_fix_observatii" cols="60" rows="3" id="canat_fix_observatii"></textarea>
                </td>
              </tr>
              <tr>
                <td>
				<hr size="1" />
				<table width="519" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="301"><table width="301" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td colspan="2">
                              <input name="Canat_mobil" type="checkbox" id="b13" value="Bifat">
                              <b>Canat mobil</b></td>
                          </tr>
                          <tr>
                            <td colspan="2">Dimensiuni:</td>
                          </tr>
                          <tr>
                            <td width="100" align="center">A</td>
                            <td width="201"><input name="canat_mobil_a" type="text" id="canat_mobil_a">
                              mm</td>
                          </tr>
                          <tr>
                            <td align="center">B</td>
                            <td><input name="canat_mobil_b" type="text" id="canat_mobil_b">
                              mm</td>
                          </tr>
                          <tr>
                            <td>Tip deschidere: </td>
                            <td><select name="canat_mobil_deschidere" id="canat_mobil_deschidere">
                                <option value="-">-</option>
                                <option value="Simpla">Simpla</option>
                                <option value="Dubla">Dubla</option>
                              </select>
                            </td>
                          </tr>
                          <tr>
                            <td>Nr. Buc:</td>
                            <td><input name="canat_mobil_buc" type="text" id="canat_mobil_buc">
                            </td>
                          </tr>
                          <tr>
                            <td>Tip Sticla: </td>
                            <td><select name="canat_mobil_sticla" id="canat_mobil_sticla">
                                <option value="-">-</option>
                                <option value="Clar">Clar</option>
                                <option value="LowE">LowE</option>
                              </select>
                            </td>
                          </tr>
                        </table>
                      </td>
                      <td width="218" align="center" valign="bottom"><img src="img/ferestre-pvc/f2.jpg" width="111" height="155"></td>
                    </tr>
                  </table>
                </td>
              </tr>
              <tr>
                <td>Observaţii:
                  <textarea name="canat_mobil_observatii" cols="60" rows="3" id="canat_mobil_observatii"></textarea>
                </td>
              </tr>
              <tr>
                <td><hr size="1" /><table width="521" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="301">
					  
					  <table width="301" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td colspan="2">                              <input name="2canate_1fix_1mobil" type="checkbox" id="b2" value="Bifat">
                              <b>                              2 canate: 1 fix, 1 mobil</b></td>
                          </tr>
                          <tr>
                            <td colspan="2">Dimensiuni: </td>
                          </tr>
                          <tr>
                            <td width="100" align="center">A</td>
                            <td width="201"><input name="2canate1f1m_a" type="text" id="2canate1f1m_a">
                              mm</td>
                          </tr>
                          <tr>
                            <td align="center">B</td>
                            <td align="left"><input name="2canate1f1m_b" type="text" id="2canate1f1m_b">
                              mm</td>
                          </tr>
                          <tr>
                            <td align="center">C</td>
                            <td align="left"><input name="2canate1f1m_c" type="text" id="2canate1f1m_c">
                              mm</td>
                          </tr>
                          <tr>
                            <td align="center">D</td>
                            <td align="left"><input name="2canate1f1m_d" type="text" id="2canate1f1m_d">
                              mm</td>
                          </tr>
                          <tr>
                            <td>Tip deschidere: </td>
                            <td><select name="2canate1f1m_deschidere" id="select31">
                                <option value="-">-</option>
                                <option value="Simpla">Simpla</option>
                                <option value="Dubla">Dubla</option>
                              </select>
                            </td>
                          </tr>
                          <tr>
                            <td>Nr. Buc:</td>
                            <td><input name="2canate1f1m_buc" type="text" id="2canate1f1m_buc">
                            </td>
                          </tr>
                          <tr>
                            <td>Tip Sticla: </td>
                            <td><select name="2canate1f1m_sticla" id="2canate1f1m_sticla">
                                <option value="-">-</option>
                                <option value="Clar">Clar</option>
                                <option value="LowE">LowE</option>
                              </select>
                            </td>
                          </tr>
                        </table>
                      </td>
                      <td width="220" align="center" valign="bottom"><img src="img/ferestre-pvc/f3.jpg" width="198" height="161"></td>
                    </tr>
                  </table>
                </td>
              </tr>
              <tr>
                <td>Observaţii:
                  <textarea name="2canate1f1m_observatii" cols="60" rows="3" id="2canate1f1m_observatii"></textarea>
                </td>
              </tr>
              <tr>
                <td><hr size="1" /><table width="525" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="301"><table width="301" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td colspan="2">
                              <input name="2_canate_mobile" type="checkbox" id="b22" value="Bifat">
                              <b>2 canate mobile</b></td>
                          </tr>
                          <tr>
                            <td colspan="2">Dimensiuni:</td>
                          </tr>
                          <tr>
                            <td width="100" align="center">A</td>
                            <td width="201"><input name="2canatemobile_a" type="text" id="2canatemobile_a">
                              mm</td>
                          </tr>
                          <tr>
                            <td align="center">B</td>
                            <td align="left"><input name="2canatemobile_b" type="text" id="f3b4">
                              mm</td>
                          </tr>
                          <tr>
                            <td align="center">C</td>
                            <td align="left"><input name="2canatemobile_c" type="text" id="2canatemobile_c">
                              mm</td>
                          </tr>
                          <tr>
                            <td align="center">D</td>
                            <td align="left"><input name="2canatemobile_d" type="text" id="2canatemobile_d">
                              mm</td>
                          </tr>
                          <tr>
                            <td colspan="2"><table width="302" border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                  <td width="140">Tip deschidere ochi A: </td>
                                  <td width="162"><select name="2canatemobile_ochia" id="select28">
                                      <option value="-">-</option>
                                      <option value="Simpla">Simpla</option>
                                      <option value="Dubla">Dubla</option>
                                    </select>
                                  </td>
                                </tr>
                                <tr>
                                  <td>Tip deschidere ochi B:</td>
                                  <td><select name="2canatemobile_ochib" id="select29">
                                      <option value="-">-</option>
                                      <option value="Simpla">Simpla</option>
                                      <option value="Dubla">Dubla</option>
                                    </select>
                                  </td>
                                </tr>
                              </table>
                            </td>
                          </tr>
                          <tr>
                            <td>Nr. Buc:</td>
                            <td><input name="2canatemobile_buc" type="text" id="f4n2">
                            </td>
                          </tr>
                          <tr>
                            <td>Tip Sticla: </td>
                            <td><select name="2canatemobile_sticla" id="select26">
                                <option value="-">-</option>
                                <option value="Clar">Clar</option>
                                <option value="LowE">LowE</option>
                              </select>
                            </td>
                          </tr>
                        </table>
                      </td>
                      <td width="224" align="center" valign="top"><img src="img/ferestre-pvc/f7.jpg" width="198" height="161"></td>
                    </tr>
                  </table>
                </td>
              </tr>
              <tr>
                <td>Observaţii:
                  <textarea name="2canatemobile_observatii" cols="60" rows="3" id="2canatemobile_observatii"></textarea>
                </td>
              </tr>
              <tr>
                <td><hr size="1" /><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="300"><table width="301" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td colspan="2">
                              <input name="3_canate_2_mobile" type="checkbox" id="b222" value="Bifat">
                              <b>3 canate: 2 mobile si 1 fix </b></td>
                          </tr>
                          <tr>
                            <td colspan="2">Dimensiuni:</td>
                          </tr>
                          <tr>
                            <td width="100" align="center">A</td>
                            <td width="201"><input name="3canate2mobile_a" type="text" id="3canate2mobile_a">
                              mm</td>
                          </tr>
                          <tr>
                            <td align="center">B</td>
                            <td align="left"><input name="3canate2mobile_b" type="text" id="f4b">
                              mm</td>
                          </tr>
                          <tr>
                            <td height="24" align="center">C</td>
                            <td align="left"><input name="3canate2mobile_c" type="text" id="3canate2mobile_c">
                              mm</td>
                          </tr>
                          <tr>
                            <td align="center">D</td>
                            <td align="left"><input name="3canate2mobile_d" type="text" id="3canate2mobile_d">
                              mm</td>
                          </tr>
                          <tr>
                            <td align="center">E</td>
                            <td align="left"><input name="3canate2mobile_e" type="text" id="3canate2mobile_e">
                              mm</td>
                          </tr>
                          <tr>
                            <td colspan="2"><table border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td width="140">Tip deschidere ochi A </td>
                                  <td width="160"><select name="3canate2mobile_ochia" id="3canate2mobile_ochia">
                                      <option value="-">-</option>
                                      <option value="Simpla">Simpla</option>
                                      <option value="Dubla">Dubla</option>
                                    </select>
                                  </td>
                                </tr>
                                <tr>
                                  <td>Tip deschidere ochi C </td>
                                  <td><select name="3canate2mobile_ochic" id="3canate2mobile_ochic">
                                      <option value="-">-</option>
                                      <option value="Simpla">Simpla</option>
                                      <option value="Dubla">Dubla</option>
                                    </select>
                                  </td>
                                </tr>
                              </table>
                            </td>
                          </tr>
                          <tr>
                            <td>Nr. Buc:</td>
                            <td><input name="3canate2mobile_buc" type="text" id="3canate2mobile_buc">
                            </td>
                          </tr>
                          <tr>
                            <td>Tip Sticla: </td>
                            <td><select name="3canate2mobile_sticla" id="select9">
                                <option value="-">-</option>
                                <option value="Clar">Clar</option>
                                <option value="LowE">LowE</option>
                              </select>
                            </td>
                          </tr>
                        </table>
                      </td>
                      <td width="220" align="center" valign="top"><img src="img/ferestre-pvc/f4.jpg" width="220" height="126"></td>
                    </tr>
                  </table>
                </td>
              </tr>
              <tr>
                <td>Observaţii:
                  <textarea name="3canate2mobile_observatii" cols="60" rows="3" id="3canate2mobile_observatii"></textarea>
                </td>
              </tr>
              <tr>
                <td>
				<hr size="1" />
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="300"><table width="301" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td colspan="2">                                <input name="3_canate_1_mobil" type="checkbox" id="b2222" value="Bifat">
                            <b>3 canate: 1 mobil si 2 fixe</b>                            </td>
                          </tr>
                          <tr>
                            <td colspan="2">Dimensiuni:</td>
                          </tr>
                          <tr>
                            <td width="100" align="center">A</td>
                            <td width="201"><input name="3canate1mobil_a" type="text" id="3canate1mobil_a">
                              mm</td>
                          </tr>
                          <tr>
                            <td align="center">B</td>
                            <td align="left"><input name="3canate1mobil_b" type="text" id="ff5b">
                              mm</td>
                          </tr>
                          <tr>
                            <td align="center">C</td>
                            <td align="left"><input name="3canate1mobil_c" type="text" id="3canate1mobil_c">
                              mm</td>
                          </tr>
                          <tr>
                            <td align="center">D</td>
                            <td align="left"><input name="3canate1mobil_d" type="text" id="3canate1mobil_d">
                              mm</td>
                          </tr>
                          <tr>
                            <td align="center">E</td>
                            <td align="left"><input name="3canate1mobil_e" type="text" id="3canate1mobil_e">
                              mm</td>
                          </tr>
                          <tr>
                            <td>Tip deschidere: </td>
                            <td><select name="3canate1mobil_deschidere" id="select13">
                                <option value="-">-</option>
                                <option value="Simpla">Simpla</option>
                                <option value="Dubla">Dubla</option>
                              </select>
                            </td>
                          </tr>
                          <tr>
                            <td>Nr. Buc:</td>
                            <td><input name="3canate1mobil_buc" type="text" id="3canate1mobil_buc">
                            </td>
                          </tr>
                          <tr>
                            <td>Tip Sticla: </td>
                            <td><select name="3canate1mobil_sticla" id="select14">
                                <option value="-">-</option>
                                <option value="Clar">Clar</option>
                                <option value="LowE">LowE</option>
                              </select>
                            </td>
                          </tr>
                        </table>
                      </td>
                      <td width="220" align="center" valign="top"><img src="img/ferestre-pvc/f5.jpg" width="220" height="126"></td>
                    </tr>
                  </table>
                </td>
              </tr>
              <tr>
                <td>Observaţii:
                  <textarea name="3canate1mobil_observatii" cols="60" rows="3" id="3canate1mobil_observatii"></textarea>
                </td>
              </tr>
              <tr>
                <td><hr size="1" /><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="300"><table width="301" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td colspan="2">                                <input name="3_canate_mobile" type="checkbox" id="b22222" value="Bifat">
                            <b>3 canate mobile</b>                            </td>
                          </tr>
                          <tr>
                            <td colspan="2">Dimensiuni:</td>
                          </tr>
                          <tr>
                            <td width="100" align="center">A</td>
                            <td width="201"><input name="3canatemobile_a" type="text" id="3canatemobile_a">
                              mm</td>
                          </tr>
                          <tr>
                            <td align="center">B</td>
                            <td align="left"><input name="3canatemobile_b" type="text" id="ff5b2">
                              mm</td>
                          </tr>
                          <tr>
                            <td align="center">C</td>
                            <td align="left"><input name="3canatemobile_c" type="text" id="3canatemobile_c">
                              mm</td>
                          </tr>
                          <tr>
                            <td align="center">D</td>
                            <td align="left"><input name="3canatemobile_d" type="text" id="3canatemobile_d">
                              mm</td>
                          </tr>
                          <tr>
                            <td align="center">E</td>
                            <td align="left">
                                <input name="3canatemobile_e" type="text" id="3canatemobile_e">
                                mm
                            </td>
                          </tr>
                          <tr>
                            <td colspan="2"><table width="300" border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                  <td width="139">Tip deschidere ochi A: </td>
                                  <td width="161"><select name="3canatemobile_ochia" id="3canatemobile_ochia">
                                      <option value="-">-</option>
                                      <option value="Simpla">Simpla</option>
                                      <option value="Dubla">Dubla</option>
                                    </select>
                                  </td>
                                </tr>
                                <tr>
                                  <td>Tip deschidere ochi B: </td>
                                  <td><select name="3canatemobile_ochib" id="select3">
                                      <option value="-">-</option>
                                      <option value="Simpla">Simpla</option>
                                      <option value="Dubla">Dubla</option>
                                    </select>
                                  </td>
                                </tr>
                                <tr>
                                  <td>Tip deschidere ochi C: </td>
                                  <td><select name="3canatemobile_ochic" id="select8">
                                      <option value="-">-</option>
                                      <option value="Simpla">Simpla</option>
                                      <option value="Dubla">Dubla</option>
                                    </select>
                                  </td>
                                </tr>
                              </table>
                            </td>
                          </tr>
                          <tr>
                            <td>Nr. Buc:</td>
                            <td><input name="3canatemobile_buc" type="text" id="3canatemobile_buc">
                            </td>
                          </tr>
                          <tr>
                            <td>Tip Sticla: </td>
                            <td><select name="3canatemobile_sticla" id="select17">
                                <option value="-">-</option>
                                <option value="Clar">Clar</option>
                                <option value="LowE">LowE</option>
                              </select>
                            </td>
                          </tr>
                        </table>
                      </td>
                      <td width="220" align="center" valign="top"><img src="img/ferestre-pvc/f6.jpg" width="220" height="126"></td>
                    </tr>
                  </table>
                </td>
              </tr>
              <tr>
                <td>Observaţii:
                  <textarea name="3canatemobile_observatii" cols="60" rows="3" id="3canatemobile_observatii"></textarea>
                </td>
              </tr>
              <tr>
                <td><hr size="1" /><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="300"><table width="301" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td colspan="2">
                              <input name="Usa_balcon_2_canate" type="checkbox" id="b7" value="Bifat">
                              <b>Uşă de balcon cu două canate </b></td>
                          </tr>
                          <tr>
                            <td colspan="2">Dimensiuni:</td>
                          </tr>
                          <tr>
                            <td width="100" align="center">A</td>
                            <td width="201"><input name="usabalcon1_a" type="text" id="usabalcon1_a">
                              mm</td>
                          </tr>
                          <tr>
                            <td align="center">B</td>
                            <td align="left"><input name="usabalcon1_b" type="text" id="f7b">
                              mm</td>
                          </tr>
                          <tr>
                            <td align="center">C</td>
                            <td align="left"><input name="usabalcon1_c" type="text" id="usabalcon1_c">
                              mm</td>
                          </tr>
                          <tr>
                            <td align="center">D</td>
                            <td align="left"><input name="usabalcon1_d" type="text" id="usabalcon1_d">
                              mm</td>
                          </tr>
                          <tr>
                            <td>Tip deschidere: </td>
                            <td><select name="usabalcon1_deschidere" id="usabalcon1_deschidere">
                                <option value="-">-</option>
                                <option value="Simpla">Simpla</option>
                                <option value="Dubla">Dubla</option>
                              </select>
                            </td>
                          </tr>
                          <tr>
                            <td>Nr. Buc:</td>
                            <td><input name="usabalcon1_buc" type="text" id="usabalcon1_buc">
                            </td>
                          </tr>
                          <tr>
                            <td>Tip Sticla: </td>
                            <td><select name="usabalcon1_sticla" id="usabalcon1_sticla">
                                <option value="-">-</option>
                                <option value="Clar">Clar</option>
                                <option value="LowE">LowE</option>
                              </select>
                            </td>
                          </tr>
                        </table>
                      </td>
                      <td width="220" align="center" valign="bottom"><img src="img/ferestre-pvc/f8.jpg" width="168" height="183"></td>
                    </tr>
                  </table>
                </td>
              </tr>
              <tr>
                <td>Observaţii:
                  <textarea name="usabalcon1_observatii" cols="60" rows="3" id="usabalcon1_observatii"></textarea>
                </td>
              </tr>
              <tr>
                <td><hr size="1" /><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="300"><table width="301" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td colspan="2">
                              <input name="Usa_balcon_1_canat" type="checkbox" id="Usa_balcon_1_canat" value="Bifat">
                              <b>Uşă de balcon cu un canat </b></td>
                          </tr>
                          <tr>
                            <td colspan="2">Dimensiuni:</td>
                          </tr>
                          <tr>
                            <td width="100" align="center">A</td>
                            <td width="201"><input name="usabalcon2_a" type="text" id="u3a2">
                              mm</td>
                          </tr>
                          <tr>
                            <td align="center">B</td>
                            <td align="left"><input name="usabalcon2_b" type="text" id="u3b2">
                              mm</td>
                          </tr>
                          <tr>
                            <td>Tip deschidere: </td>
                            <td><select name="usabalcon2_deschidere" id="select2">
                                <option value="-">-</option>
                                <option value="Simpla">Simpla</option>
                                <option value="Dubla">Dubla</option>
                              </select>
                            </td>
                          </tr>
                          <tr>
                            <td>Nr. Buc:</td>
                            <td><input name="usabalcon2_buc" type="text" id="u3n2">
                            </td>
                          </tr>
                          <tr>
                            <td>Tip Sticla: </td>
                            <td><select name="usabalcon2_sticla" id="select4">
                                <option value="-">-</option>
                                <option value="Clar">Clar</option>
                                <option value="LowE">LowE</option>
                              </select>
                            </td>
                          </tr>
                        </table>
                      </td>
                      <td width="220" align="center" valign="bottom"><img src="img/ferestre-pvc/f9.jpg" width="92" height="183" border="0"></td>
                    </tr>
                  </table>
                </td>
              </tr>
              <tr>
                <td>Observaţii:
                  <textarea name="usabalcon2_observatii" cols="60" rows="3" id="textarea"></textarea>
                </td>
              </tr>
              <tr>
                <td><hr size="1" /><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="300"><table width="301" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td colspan="2">
                              <input name="Usa_interior_2_canate" type="checkbox" id="b72" value="Bifat">
                              <b>Uşă de interior cu două canate </b></td>
                          </tr>
                          <tr>
                            <td colspan="2">Dimensiuni:</td>
                          </tr>
                          <tr>
                            <td width="100" align="center">A</td>
                            <td width="201"><input name="usainterior1_a" type="text" id="usainterior1_a">
                              mm</td>
                          </tr>
                          <tr>
                            <td align="center">B</td>
                            <td align="left"><input name="usainterior1_b" type="text" id="u1b">
                              mm</td>
                          </tr>
                          <tr>
                            <td align="center">C</td>
                            <td align="left"><input name="usainterior1_c" type="text" id="usainterior1_c">
                              mm</td>
                          </tr>
                          <tr>
                            <td align="center">D</td>
                            <td align="left"><input name="usainterior1_d" type="text" id="usainterior1_d">
                              mm</td>
                          </tr>
                          <tr>
                            <td>Tip deschidere: </td>
                            <td><select name="usainterior1_deschidere" id="select11">
                                <option value="-">-</option>
                                <option value="Simpla">Simpla</option>
                                <option value="Dubla">Dubla</option>
                              </select>
                            </td>
                          </tr>
                          <tr>
                            <td>Nr. Buc:</td>
                            <td><input name="usainterior1_buc" type="text" id="usainterior1_buc">
                            </td>
                          </tr>
                          <tr>
                            <td>Tip Sticla: </td>
                            <td><select name="usainterior1_sticla" id="select33">
                                <option value="-">-</option>
                                <option value="Clar">Clar</option>
                                <option value="LowE">LowE</option>
                              </select>
                            </td>
                          </tr>
                        </table>
                      </td>
                      <td width="220" align="center" valign="bottom"><img src="img/ferestre-pvc/f8.jpg" width="168" height="183"></td>
                    </tr>
                  </table>
                </td>
              </tr>
              <tr>
                <td>Observaţii:
                  <textarea name="usainterior1_observatii" cols="60" rows="3" id="usainterior1_observatii"></textarea>
                </td>
              </tr>
              <tr>
                <td><hr size="1" /><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="300"><table width="301" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td colspan="2">
                              <input name="Usa_interior_1_canat" type="checkbox" id="b7222" value="Bifat">
                              <b>Uşă de interior cu un canat </b></td>
                          </tr>
                          <tr>
                            <td colspan="2">Dimensiuni:</td>
                          </tr>
                          <tr>
                            <td width="100" align="center">A</td>
                            <td width="201"><input name="usainterior2_a" type="text" id="usainterior2_a">
                              mm</td>
                          </tr>
                          <tr>
                            <td align="center">B</td>
                            <td align="left"><input name="usainterior2_b" type="text" id="u3b">
                              mm</td>
                          </tr>
                          <tr>
                            <td>Tip deschidere: </td>
                            <td><select name="usainterior2_deschidere" id="select22">
                                <option value="-">-</option>
                                <option value="Simpla">Simpla</option>
                                <option value="Dubla">Dubla</option>
                              </select>
                            </td>
                          </tr>
                          <tr>
                            <td>Nr. Buc:</td>
                            <td><input name="usainterior2_buc" type="text" id="usainterior2_buc">
                            </td>
                          </tr>
                          <tr>
                            <td>Tip Sticla: </td>
                            <td><select name="usainterior2_sticla" id="select23">
                                <option value="-">-</option>
                                <option value="Clar">Clar</option>
                                <option value="LowE">LowE</option>
                              </select>
                            </td>
                          </tr>
                        </table>
                      </td>
                      <td width="220" align="center" valign="bottom"><img src="img/ferestre-pvc/f9.jpg" width="92" height="183" border="0"></td>
                    </tr>
                  </table>
                </td>
              </tr>
              <tr>
                <td>Observaţii:
                  <textarea name="usainterior2_observatii" cols="60" rows="3" id="usainterior2_observatii"></textarea>
                </td>
              </tr>
              <tr>
                <td><hr size="1" /><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="300"><table width="301" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td colspan="2">
                              <input name="Usa_exterior_2_canate" type="checkbox" id="b9" value="Bifat">
                              <b>Uşă de exterior cu două canate </b></td>
                          </tr>
                          <tr>
                            <td colspan="2">Dimensiuni:</td>
                          </tr>
                          <tr>
                            <td width="100" align="center">A</td>
                            <td width="201"><input name="usaexterior1_a" type="text" id="usaexterior1_a">
                              mm</td>
                          </tr>
                          <tr>
                            <td align="center">B</td>
                            <td align="left"><input name="usaexterior1_b" type="text" id="usaexterior1_b">
                              mm</td>
                          </tr>
                          <tr>
                            <td align="center">C</td>
                            <td align="left"><input name="usaexterior1_c" type="text" id="usaexterior1_c">
                              mm</td>
                          </tr>
                          <tr>
                            <td align="center">D</td>
                            <td align="left"><input name="usaexterior1_d" type="text" id="usaexterior1_d">
                              mm</td>
                          </tr>
                          <tr>
                            <td>Tip deschidere: </td>
                            <td><select name="usaexterior1_deschidere" id="select18">
                                <option value="-">-</option>
                                <option value="Simpla">Simpla</option>
                                <option value="Dubla">Dubla</option>
                              </select>
                            </td>
                          </tr>
                          <tr>
                            <td>Nr. Buc:</td>
                            <td><input name="usaexterior1_buc" type="text" id="usaexterior1_buc">
                            </td>
                          </tr>
                          <tr>
                            <td>Tip Sticla: </td>
                            <td><select name="usaexterior1_sticla" id="select19">
                                <option value="-">-</option>
                                <option value="Clar">Clar</option>
                                <option value="LowE">LowE</option>
                              </select>
                            </td>
                          </tr>
                        </table>
                      </td>
                      <td width="220" align="center" valign="bottom"><img src="img/ferestre-pvc/f8.jpg" width="168" height="183"></td>
                    </tr>
                  </table>
                </td>
              </tr>
              <tr>
                <td>Observaţii:
                  <textarea name="usaexterior1_observatii" cols="60" rows="3" id="textarea4"></textarea>
                </td>
              </tr>
              <tr>
                <td><hr size="1" /><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="300"><table width="301" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td colspan="2">
                              <input name="Usa_exterior_1_canat" type="checkbox" id="Usa_exterior_1_canat" value="Bifat">
                              <b>Uşă de exterior cu un canat </b></td>
                          </tr>
                          <tr>
                            <td colspan="2">Dimensiuni:</td>
                          </tr>
                          <tr>
                            <td width="100" align="center">A</td>
                            <td width="201"><input name="usaexterior2_a" type="text" id="usaexterior2_a">
                              mm</td>
                          </tr>
                          <tr>
                            <td align="center">B</td>
                            <td align="left"><input name="usaexterior2_b" type="text" id="usaexterior2_b">
                              mm</td>
                          </tr>
                          <tr>
                            <td>Tip deschidere: </td>
                            <td><select name="usaexterior2_deschidere" id="select12">
                                <option value="-">-</option>
                                <option value="Simpla">Simpla</option>
                                <option value="Dubla">Dubla</option>
                              </select>
                            </td>
                          </tr>
                          <tr>
                            <td>Nr. Buc:</td>
                            <td><input name="usaexterior2_buc" type="text" id="usaexterior2_buc">
                            </td>
                          </tr>
                          <tr>
                            <td>Tip Sticla: </td>
                            <td><select name="usaexterior2_sticla" id="select15">
                                <option value="-">-</option>
                                <option value="Clar">Clar</option>
                                <option value="LowE">LowE</option>
                              </select>
                            </td>
                          </tr>
                        </table>
                      </td>
                      <td width="220" align="center" valign="bottom"><img src="img/ferestre-pvc/f9.jpg" width="92" height="183" border="0"></td>
                    </tr>
                  </table>
                </td>
              </tr>
              <tr>
                <td>Observaţii:
                  <textarea name="usaexterior2_observatii" cols="60" rows="3" id="textarea3"></textarea>
                </td>
              </tr>
            </table>
          </td>
        </tr>
        <tr align="center">
          <td colspan="2" valign="top"><input type="submit" name="Submit2" value="Sterge">
            <input name="Submit" type="submit" onClick="MM_validateForm('Nume_client','','R','Adresa','','R','Telefon','','RisNum','Emailul','','RisEmail');return document.MM_returnValue" value="Trimite" >
          </td>
        </tr>
      </table>
    </center>
  </form>

Asta ar fi codul ce il am in pagina, acum am nevoie de cea ce este in spatele lui si face ca informatiile sa ajunga pe email.

Are cineva idee si ma poate ajuta ?

 

Multumesc !

Posted

Din cate m-am uitat in mare peste codurile de mai sus, atunci cand apesi pe buton ar trebui sa se ruleze scriptul din trimite-oferta.php, in care trebuie sa se gaseseasca "mtorul" (cateva linii de cod ce fac posibila trimiterea email-ului).

 

Ai cateva exemple mai jos:

Te-ai inregistrat? Ne-ar placea sa te prezinti.

Cum pot sustine forumul?
Cumpara de la eMag folosind acest link.
--------------------
oG2BN9d.gifse1WdXd.gifQG6MtmI.gifRHYjDzD.gifG5p1wui.gif

Posted

Asta am eu in trimite-oferta.php. Dar cand dau trimite imi ramane pagina alba nu primesc nimic , imi ramane pagina alba si nu porneste redirectul care ar confirma ca totul merge ok.

<?php
if(isset($_POST['email'])) {
     
    // Editeaza cele doua linii asa cum ai tu nevoie:
    $email_to = "test@all-pvc-facility.ro";
    $email_subject = "Cere Ofeta All PVC Facility";
     
     
    function died($error) {
        // cod eroare
        echo "Ne pare rau, dar au fost intalnite erori in formularul dumneavoastra. ";
        echo "Aceste erori sunt afisate mai jos.<br /><br />";
        echo $error."<br /><br />";
        echo "Va rugam sa incercat din nou.<br /><br />";
        die();
    }
     
    // validation expected data exists
    if(!isset($_POST['nume']) ||
	    !isset($_POST['firma']) ||
        !isset($_POST['adresa']) ||
        !isset($_POST['telefon']) ||
        !isset($_POST['email']) ||
		!isset($_POST['tip_contact']) ||
		!isset($_POST['tip_profil']) ||
		!isset($_POST['alb_color']) ||
		!isset($_POST['tip_canat']) ||
		!isset($_POST['canat_a']) ||
		!isset($_POST['canat_b']) ||
		!isset($_POST['nr_buc']) ||
		!isset($_POST['tip_sticla']) ||
		!isset($_POST['tip_deschidere']) ||
        !isset($_POST['obs'])) {
        died('Ne pare rau, dar au fost intalnite erori in formularul dumneavoastra.');       
    }
     
    $nume = $_POST['nume']; // necesar
    $firma = $_POST['firma']; // necesar
	$adresa = $_POST['adresa']; // necesar
	$telefon = $_POST['telefon']; // necesar
    $email_from = $_POST['email']; // necesar
	$tip_contact = $_POST['tip_contact']; // nu este necesar
	$tip_profilt = $_POST['tip_profil']; // nu este necesar
	$alb_color = $_POST['alb_color']; // nu este necesar
    $tip_canat = $_POST['tip_canat']; // nu este necesar
	$canat_a = $_POST['canat_a']; // nu este necesar
	$canat_b = $_POST['canat_b']; // nu este necesar
	$nr_buc = $_POST['nr_buc']; // nu este necesar
	$tip_sticla = $_POST['tip_sticla']; // nu este necesar
	$tip_deschidere = $_POST['tip_deschidere']; // nu este necesar
    $obs = $_POST['obs']; // necesar
     
    $error_message = "";
    $email_exp = '/^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+.[A-Za-z]{2,4}$/';
  if(!preg_match($email_exp,$email_from)) {
    $error_message .= 'Campul "Email" nu a fost completat corespunzator.<br />';
  }
    $string_exp = "/^[A-Za-z .'-]+$/";
  if(!preg_match($string_exp,$nume)) {
    $error_message .= 'Campul "Nume" nu a fost completat corespunzator.<br />';
  }

  if(strlen($error_message) > 0) {
    died($error_message);
  }
    $email_message = "Detalii Contact.nn";
     
    function clean_string($string) {
      $bad = array("content-type","bcc:","to:","cc:","href");
      return str_replace($bad,"",$string);
    }
     
    $email_message .= "Nume: ".clean_string($nume)."n";
    $email_message .= "Firma: ".clean_string($firma)."n";
	$email_message .= "Adresa: ".clean_string($adresa)."n";
	$email_message .= "Telefon: ".clean_string($telefon)."n";
    $email_message .= "Email: ".clean_string($email_from)."n";
	$email_message .= "Tip Contact: ".clean_string($tip_contact)."n";
	$email_message .= "Tip Profil: ".clean_string($tip_profil)."n";
	$email_message .= "Alb/Color: ".clean_string($alb_color)."n";
	$email_message .= "Tip Canat: ".clean_string($tip_canat)."n";
	$email_message .= "Dimensiune A: ".clean_string($canat_a)."n";
	$email_message .= "Dimensiune B: ".clean_string($canat_b)."n";
	$email_message .= "Nr. Buc: ".clean_string($nr_buc)."n";
	$email_message .= "Tip Sticla: ".clean_string($tip_sticla)."n";
    $email_message .= "Tip Deschidere: ".clean_string($tip_deschidere)."n";
    $email_message .= "Obs.: ".clean_string($obs)."n";
     
     
	 
	
// create email headers
$headers = 'From: '.$email_from."rn".
'Reply-To: '.$email_from."rn" .
'X-Mailer: PHP/' . phpversion();
@mail($email_to, $email_subject, $email_message, $headers);  
?>
 
<!-- Adauga propriul cod html aici -->
 
<script type="text/javascript">window.setTimeout("location=('http://all-pvc-facility.ro/cerere-trimisa.php');",100)</script>
 
<?php
}
?> 

Ma poate ajuta cineva sa il pun la punct ?

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.