Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

2 submit buttons

Status
Not open for further replies.

0olearno0

Technical User
Joined
May 10, 2006
Messages
1
Location
US
Let me preface my question by saying that I have a limited and barely working knowledge of scripting of any kind period. below is the piece of code that is giving me trouble. I have two submit buttons, one is part of an email form and one is the submit button on the google search bar. before I added the google search bar the email worked great. then after adding the google search clicking the google search bar submit was sending an email. I finally got that to stop by surrounding the email form code with a <form> tag. now the google search bar is working, but the email form does nothing. The email form is suppose to send an email and then redirect to a thank you page. Thanks for any help, and please excuse my ugly ugly coding.


<form>
<input name="realname" type=text size="20">
</strong></span><span class="style1 style2"><strong>Name</strong></span>
</p> <p class="style1 style2 style11"><strong>
<input name="subject" type=text size="20">
Subject</strong></p> <p> <span class="style1 style2 style11"><strong>
<input name="email" type=text size="20">
Email Address</strong></span></p> <p>
<textarea name="textarea" cols="60" rows="3"></textarea>
</p> <p>
<input name="submit" type="submit" value="Send">
<form action=" method="POST">
<input type=hidden name="recipient" value="brian@nycspectacle.com">
<input type=hidden name="redirect" value=" </p>
</form>
</td>


<td colspan="3" align="right" valign="top">

<!-- SiteSearch Google -->
<form method="get" action=" target="google_window">
<table border="0" bgcolor="#CCE717">
<tr><td nowrap="nowrap" valign="top" align="left" height="32">

<br/>
<input type="hidden" name="domains" value="<input type="text" name="q" size="31" maxlength="255" value=""></input>
</td></tr>
<tr>
<td nowrap="nowrap">
<table>
<tr>
<td>
<input type="radio" name="sitesearch" value="" checked="checked"></input>
<font size="-1" color="#000000">Web</font>
</td>
<td>
<input type="radio" name="sitesearch" value="nyc SPECTACLE"></input>
<font size="-1" color="#000000">nyc SPECTACLE</font>
</td>
</tr>
</table>
<input type="submit" name="sa" value="Google Search"></input>
<input type="hidden" name="client" value="pub-4362051463562808"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="ie" value="ISO-8859-1"></input>
<input type="hidden" name="oe" value="ISO-8859-1"></input>
<input type="hidden" name="cof" value="GALT:#0066CC;GL:1;DIV:#999999;VLC:336633;AH:center;BGC:FFFFFF;LBGC:CCE717;ALC:0066CC;LC:0066CC;T:000000;GFNT:666666;GIMP:666666;LH:50;LW:50;L:<input type="hidden" name="hl" value="en"></input>
</td></tr></table>
</form>
<!-- SiteSearch Google -->
 
Take the email form outside of the other form. Right now you have one form nested inside another.

Your paragraph <p> tags are unbalanced with the email form, too. You have an opening <p> outside the form, and the closing </p> inside the form.

It looks like you have some other inbalances, too, with the </strong> tag inside the first form without the <strong> tag inside the form.

You should probably validate your code through


Lee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top