0
Welcome Guest! Login
0 items Join Now

Reset form on submission

  • Reset form on submission

    Posted 16 years 10 months ago
    • Hello

      I'm using a simple form on my site. Visitors can type in their phone-number. The form then launches a php file in a pop-up window which communicates with another database. My question is: is it possible to reset the form and submit to a pop-up window at the same time? I have tried different methods, but failed so far. I hope one of You has an answer. Thanks.
      <script language="JavaScript">
       
      function popup() {
      &nbsp; var NewWind = window.open( "","remote", "width=250,height=200,left=500,top=300" );
      &nbsp; if (NewWind.opener == null) {
      &nbsp; &nbsp; NewWind.opener = window;
      &nbsp; }
      }
      &nbsp; </script>
      <h4>Är det upptaget hos oss? Låt oss ringa dig istället! Skriv in ditt telefonnummer i rutan nedanför.</h4>
      <form name="form1" method="post" target="remote" action="http://pathtosomefile.php"><input name="f_tfn" id="f_tfn" size="10" type="text">
      <input name="Submit" value="Ring mig" onclick="popup()" type="submit"></form>

      /Peter

Time to create page: 0.054 seconds