Results 1 to 4 of 4
  1. #1
    Join Date
    May 2003
    Location
    Kansas and PEI
    Posts
    409

    multiple submit forms on one page

    Hello,

    Having problems with my new site design, I have the entropysearch on the top of my page, and a contact form in the body.. When I use the search form, It redirects to my thank you page and I get the contact email. Somehow the 2 forms are linked.. How can I seperate the forms?

    Any suggestions? Thanks Jason

    Heres what my code around the forms consist of:


    search form:
    Code:
    <td width="30">&nbsp;</td>
    <form action="/cgi-sys/entropysearch.cgi" target=searchwindow>
     <td align="center"><input type="text" name="query" value="">
    <input type="hidden" name="user" value="name">
    <input type="hidden" name="basehref" value="http://mydomain.com">
    <input type="hidden" name="template" value="default">
    </td><td>
    <input type="image" src="images/go_img_05.jpg" name="submit"></td>
    And heres my contact form code:
    Code:
    <font face="Verdana" size="2">Name:	</font></span></td>
    <td><input class="form" name="name" size="30">
    <span style="font-weight: 400"><font size="2">Email:</font></span></td>
    <td><input class="form" name="Email" size="30"></td>
    <td valign="top">
    <span style="font-weight: 400">
    <font face="Verdana" size="2">Comments:</font></span></td>
    <td>
    <textarea rows="6" name="S1" cols="23"></textarea></td>
    </tr>
    </table>
    <p class="style1" align="center">
    <input type="submit" value="Submit" name="B1"><span style="font-weight: 400">
    </span>
    <input type="reset" value="Reset" name="B2"></p> 
    <input name="subject" type="hidden" value="Contactus"> 
    <input name="recipient" type="hidden" value="info@mydomain.com">
    <input type=hidden name="env_report" value="REMOTE_HOST">
    <input name="redirect" type="hidden" value="http://www.mydomain.com/thankyou.htm">

  2. #2
    Join Date
    Oct 2002
    Location
    /roof/ledge
    Posts
    28,088
    You need to close the first <form> tag pair, then reopen a new pair for the second form.
    Code:
    <form action="path_to_script">
    <stuff>
    <junk>
    </form>
    More stuff
    <form action="path/to/second/script">
    <other stuff>
    </form>

  3. #3
    Join Date
    May 2003
    Location
    Kansas and PEI
    Posts
    409
    Thanks

  4. #4
    Join Date
    May 2003
    Location
    Kansas and PEI
    Posts
    409
    that did it

    Thanks again

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •