Ergebnis 1 bis 1 von 1
  1. #1
    matthias1973 ist offline Grünschnabel
    registriert
    22-10-2008
    Beiträge
    1

    Question Hilfe mit Kontakt formular

    Hallo, Leute,
    sorry schon wieder einer der fragt wie mein ein Kontaktformular einrichtet. Also hier der Code für das Formular.php:
    PHP-Code:
    <?php
    Error_Reporting
    (E_ALL & ~E_NOTICE);

     while (
    $request current($_REQUEST)) {
         if (
    key($_REQUEST)!='recipient') {
            
    $pre_array=split ("&777&",  $request);
            
            
    $post_vars[key($_REQUEST)][0]=preg_replace ("/<[^>]*>/"""$pre_array[0]);
            
    $post_vars[key($_REQUEST)][1]=preg_replace ("/<[^>]*>/"""$pre_array[1]);
        }
        
    next($_REQUEST);
    }



    reset($post_vars);


    $subject="From ".$post_vars['your_name'][0] ;
    $headers"From: ".$post_vars['your_email'][0] ."\n";
     
    $headers.='Content-type: text/html; charset=iso-8859-1';
     
    $message='';
      while (
    $mess current($post_vars)) {
          if ((
    key($post_vars)!="i") && (key($post_vars)!="your_email") && (key($post_vars)!="your_name")) {

             
    $message.="<strong>".$mess[1]."</strong>&nbsp;&nbsp;&nbsp;".$mess[0]."<br>";
        }
        
    next($post_vars);
     }

    mail($_REQUEST['recipient'], $subject,  "
    <html>
    <head>
     <title>Contact letter</title>
    </head>
    <body>
    <br>
      "
    .$message."
    </body>
    </html>" 
    $headers);
    echo (
    "Your message was successfully sent!");

    ?>
    <script>
        resizeTo(300, 300);
    </script>



    Und hier im Kontakt.html


    <?xml version="1.0" encoding="utf-8"?>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <script type="text/javascript">
    <!--
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    }
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    }

    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    }
    //-->
    </script>
    <head>
    <title></title>
    <link href="style.css" rel="stylesheet" type="text/css" />


    <style type="text/css">
    <!--
    .Stil1 {font-family: "Trebuchet MS"}
    .Stil3 {font-family: "Trebuchet MS"; color: #CCCCCC; }
    .Stil4 {color: #CCCCCC}
    -->
    </style>
    <script type="text/javascript">
    <!--
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    }
    //-->
    </script>
    </head>
    <body id="page6" onLoad="MM_preloadImages('images/agentur_over.png','images/leistungen_over.png','images/auftraege_over.png','images/referenzen_over.png','images/karriere_over.png','images/kontakt_over.png')">
    <table class="w">
        <tr>
            <td class="main">
              <table class="main1">
                    <tr>
                        <td class="bg"></td>
                          <td class="bg1">
                               <table class="bg2"> 
                                <tr>
                                  <td class="pad">
                                       <table class="w1"> 
                                            <tr>
                                                <td id="header"><a href="index.html"><img alt="" src="http://forum.jswelt.de/images/logo.png" class="logo" /></a></td>
                                         </tr>
                                            <tr>
                                                <td>
                                                    <table id="content">
                                                        <tr>
                                                              <td><table width="100%" border="0">
                                                             <tr>
                                                               <th scope="col"><a href="agentur.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image5','','images/agentur_over.png',1)"><img src="http://forum.jswelt.de/images/agentur_plain.png" width="104" height="29" border="0" id="Image5" /></a></th>
                                                               <th scope="col"><a href="leistungen.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image6','','images/leistungen_over.png',1)"><img src="http://forum.jswelt.de/images/leistungen_plain.png" width="103" height="29" border="0" id="Image6" /></a></th>
                                                               <th scope="col"><a href="auftraege.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image7','','images/auftraege_over.png',1)"><img src="http://forum.jswelt.de/images/auftraege_plain.png" width="104" height="29" border="0" id="Image7" /></a></th>
                                                               <th scope="col"><a href="referenzen.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image8','','images/referenzen_over.png',1)"><img src="http://forum.jswelt.de/images/referenzen_plain.png" width="104" height="29" border="0" id="Image8" /></a></th>
                                                               <th scope="col"><a href="karriere.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image9','','images/karriere_over.png',1)"><img src="http://forum.jswelt.de/images/karriere_plain.png" width="104" height="29" border="0" id="Image9" /></a></th>
                                                               <th scope="col"><a href="kontakt.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image10','','images/kontakt_over.png',1)"><img src="http://forum.jswelt.de/images/kontakt_plain.png" width="104" height="29" border="0" id="Image10" /></a></th>
                                                             </tr>
                                                           </table>
                                                                <table class="table">
                                                                    <tr>
                                                                        <td class="indent_main">
                                                                            <table class="w2">
                                                                                <tr>
                                                                                    <td height="409" class="col1">
                                                                                  <img alt="" src="http://forum.jswelt.de/images/6_w1.png" class="title" />
                                                                                  <div class="indent">
                                                                                    <form action="" id="form2" style="margin:0; padding:0 ">
                                                                                        <table width="271" style="height:187px; width:284px">
                                                                                          <tr>
                                                                                            <td width="263" height="334" style="width:160px"><input type="text" value=" Firma " />
                                                                                              <input type="text" value=" Name" />
                                                                                                <input type="text" value=" E-Mail " />
                                                                                                <input type="text" value=" Telefon " />
                                                                                                <input type="text" value=" Adresse " />
                                                                                              <span style="width:152px">
                                                                                                <textarea name="textarea2"  cols="35" rows="35"> Nachricht</textarea>
                                                                                              </span></td>
                                                                                          </tr>
                                                                                        </table>
                                                                                      </form>
                                                                                  </div></td>
    <td class="col2">
                                                                                  <img alt="" src="http://forum.jswelt.de/images/6_w2.gif" class="title" />
                                                                                  <div class="indent">
                                                                                    <p><span style="width:160px">
                                                                                      <input type="text" value=" Leistung" />
                                                                                    </span><br />
                                                                                    <span style="width:160px">
                                                                                    <input type="text" value=" Textart " />
                                                                                    </span><br />
                                                                                    <span style="width:160px">
                                                                                    <input type="text" value=" Textlänge" />
                                                                                    </span><br />
                                                                                    <span style="width:160px">
                                                                                    <input type="text" value=" Liefertermin" />
                                                                                    </span><br />
                                                                                    <span class="tabledata_1">
                                                                                    &nbsp;
                                                                                    <input type="hidden" 
                            value="10485760" name="MAX_FILE_SIZE" />
                                                                                    <input type="file" 
                            name="form_data" />
                                                                                    &nbsp;<br />
                                                                                    <br />
                                                                                    <span style="width:152px"><a href="#" onClick="document.getElementById('form').reset()"> <img alt="" src="http://forum.jswelt.de/images/6_k1.gif" /></a><img alt="" src="http://forum.jswelt.de/images/spacer.gif" width="2" height="1" /><a href="#" onClick="document.getElementById('form').submit()"><img alt="" src="http://forum.jswelt.de/images/6_k2.gif" /></a></span><br />
                                                                                    </span><span style="width:152px"><a href="#" onClick="document.getElementById('form').reset()"></a></span><span style="width:152px"><a href="#" onClick="document.getElementById('form').submit()"><a href="#" onclick="document.getElementById('form').submit()"><img src="http://forum.jswelt.de/images/spacer.gif" alt="" width="1" height="1" /></a></span><span style="width:152px"><a href="#" onClick="document.getElementById('form').submit()"></a><a href="#" onClick="document.getElementById('form').submit()"><a href="#" onclick="document.getElementById('form').submit()"></a></span><br />
                                                                                    </p>
                                              </div></td>
                                                                              </tr>
                                                                            </table>
                                                                      </td>
                                                                    </tr>
                                                             </table> 
                                                          </td>
                                                      </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td id="footer"><p class="Stil1">bizz communications © 2008 <span class="Stil4">|</span> <span class="Stil4"><a href="impressum.html">impressum</a></span><span class="Stil4"> |</span> <span class="Stil4"><a href="agbs.pdf">agbs</a></span></p>
                                              <p class="Stil3">DE | EN</p></td>
                                            </tr>
                                       </table>
                                     </td>
                                </tr>
                            </table>
                      </td>
                        <td class="bg"></td>
                    </tr>
                    <tr>
                        <td class="bg" colspan="3"></td>
                    </tr>
          </table>
            </td>
        </tr>
    </table>



    </body>
    </html>
    Würde mich freuen wenn Ich da Hilfe kriegen kann ...
    Grüße allerseits
    Geändert von Albu (22-10-2008 um 22:25 Uhr) Grund: CODETAGS!!!!!!!

Ähnliche Themen

  1. php kontakt formular
    Von miquel im Forum Serverseitige Programmierung
    Antworten: 1
    Letzter Beitrag: 28-09-2007, 15:59
  2. Formular Hilfe!!!
    Von RusenChat im Forum Serverseitige Programmierung
    Antworten: 9
    Letzter Beitrag: 06-07-2007, 14:18
  3. Hilfe -- Formular teilen
    Von webZebra im Forum Serverseitige Programmierung
    Antworten: 5
    Letzter Beitrag: 05-07-2003, 14:49
  4. Formular - brauch Hilfe !
    Von dslsauger im Forum Jobs
    Antworten: 6
    Letzter Beitrag: 30-05-2003, 18:38
  5. HILFE - Formular SSL-Verbindung
    Von maximilian im Forum JavaScript
    Antworten: 1
    Letzter Beitrag: 03-10-2002, 23:13

Stichworte

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •