Results 1 to 4 of 4
-
06-12-2004, 09:24 PM #1Aspiring Evangelist
- 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"> </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>
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">
-
06-12-2004, 10:27 PM #2
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>
-
06-12-2004, 11:32 PM #3Aspiring Evangelist
- Join Date
- May 2003
- Location
- Kansas and PEI
- Posts
- 409
Thanks
-
06-12-2004, 11:48 PM #4Aspiring Evangelist
- Join Date
- May 2003
- Location
- Kansas and PEI
- Posts
- 409
that did it
Thanks again