Web Analytics Made Easy -
StatCounter Dynamic Form Fields - CodingForum

Announcement

Collapse
No announcement yet.

Dynamic Form Fields

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Resolved Dynamic Form Fields

    If you goto mysite [LINK] (guest/guest) and put an email in the "newsletter" block click GO, a new window will open and the email you've typed on the main page is being displayed in the popup window, that's in firefox. However in IE7 this feature doesn't work at all.

    Any suggestion?

    Code of form.php
    Code:
    <?php
      $name = $_REQUEST['name'];
      $email = $_REQUEST['email'] ;
      //$message = $_REQUEST['message'] ;
      $phone = $_REQUEST['phone'];
      $location = $_REQUEST['location'];
    
      mail( "[email protected]", "Feedback Form Site", "Name: $name", "From: $email", "Telephone: $phone", "Location: $location" );
      header( "Location: /thankyou.html" );
    ?>
    Code of the html form
    Code:
    <form name="contact_form" method="post" action="form.php" onsubmit="return validateEmpty(name);">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="1" cellpadding="2">
          <tr>
            <td height="30" colspan="2" align="right" bgcolor="#e8edf1"><span class="style3">*Champs obligatoires</span></td>
            </tr>
          <tr>
            <td bgcolor="#e8edf1">Email<span class="style3">*</span>:</td>
            <td bgcolor="#e8edf1"><input name="email" type="text" id="textfield" value="<?php echo $_POST['email']; ?>" size="32" /></td>
          </tr>
          <tr>
            <td bgcolor="#e8edf1">Nom<span class="style3">*</span>:</td>
            <td bgcolor="#e8edf1"><input name="name" type="text" id="textfield2" size="32" /></td>
          </tr>
          <tr>
            <td bgcolor="#e8edf1"> T&eacute;l&eacute;phone:</td>
            <td bgcolor="#e8edf1"><input name="phone" type="text" id="textfield3" size="32" /></td>
          </tr>
          <tr>
            <td bgcolor="#e8edf1">Circonscription &eacute;lectorale:</td>
            <td bgcolor="#e8edf1"><select name="location" size="5" multiple="multiple" id="select">
              <option value="Beyrouth" style="font-weight:bold;"><strong>Beyrouth</strong></option>
               <option value="Beyrouth 1" style="font-size:10px;">&raquo; Achrafieh</option>
               <option value="Beyrouth 1" style="font-size:10px;">&raquo; Rmeil</option>
              <option value="Beyrouth 1" style="font-size:10px;">&raquo; Mazraa</option>
               <option value="Beyrouth 1" style="font-size:10px;">&raquo; Saifi</option>
                <option value="Beyrouth 1" style="font-size:10px;">&raquo; Bashoura</option>
                 <option value="Beyrouth 1" style="font-size:10px;">&raquo; Msaitbeh</option>
               <option value="Beyrouth 1" style="font-size:10px;">&raquo; Ain El Mraisseh</option>
               <option value="Beyrouth 1" style="font-size:10px;">&raquo; Medawar</option>
               <option value="Beyrouth 1" style="font-size:10px;">&raquo; Mina El Hosn</option>
               <option value="Beyrouth 1" style="font-size:10px;">&raquo; Port</option>
               <option value="Beyrouth 1" style="font-size:10px;">&raquo; Ras Beyrouth</option>
               <option value="Beyrouth 1" style="font-size:10px;">&raquo; Zokak El Blat</option>
              <option value="Bekaa" style="font-weight:bold;">Bekaa</option>
              <option value="Mont Liban" style="font-weight:bold;">Mont Liban</option>
              <option value="Liban Nord" style="font-weight:bold;">Liban Nord</option>
              <option value="Liban Sud" style="font-weight:bold;">Liban Sud</option>
                                              </select>        </td>
          </tr>
          <tr>
            <td height="50" colspan="2" align="center" bgcolor="#e8edf1"><input type="submit" name="button" id="button" value="Soumettre" /></td>
          </tr>
        </table></td>
      </tr>
    </table>
    </form>
    Last edited by Snitz; Apr 16, 2009, 09:37 AM.

  • #2
    Problem solved, I had a feedburner hidden code that's making a conflict with my form.

    Comment

    Working...
    X