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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

form not posting? 1

Status
Not open for further replies.

snowboardr

Programmer
Feb 22, 2002
1,401
PH
I have messed around with this post code for 2 hours and I can't get this form to post! The first part of the code is the first form, and then the second part of the code below is the form that isn't posting.... I just can't see whats wrong?! I have changed form names... and everything... but when you click the submit button it does nothing.

Jason

Code:
<form id="dopost" name="dopost" method="post" action="/question/cat1/cat2/695/">
          <table width="935" border="0" cellspacing="0" cellpadding="5">
        
            <tr>
              <td width="102" valign="top"><div align="right">Advice:</div></td>

              <td colspan="2"><textarea name="frmBody" cols="89" rows="17" id="frmBody"></textarea></td>
            </tr>
            <tr>
              <td valign="top">&nbsp;</td>
              <td width="766">
                
                  <div align="right">
                    <input name="questionid" type="hidden" id="questionid" value="695" />
                    <input name="save" type="hidden" id="save" value="true" />

                    <input type="submit" name="Submit3" value="          Post Reply           " />
                    </div></td>
              <td width="37">&nbsp;</td>
            </tr>
          </table>
                </form>


Form that isn't working:
Code:
<form id="dopostreply" name="dopostreply" method="post" action="/question/cat1/cat2/695/">
	  <table width="100%" border="0" cellspacing="0" cellpadding="2">
          <tr id="smilecell695" style="display:none;">
            <td valign="top"><div align="right" id="smileloadhere695"></div></td>
            <td valign="top">&nbsp;</td>
          </tr>
          <tr>
            <td width="96%" valign="top">
                <div align="right">

                  <input name="save" type="hidden" id="save" value="true" />
                  <input name="quoteid" type="hidden" id="quoteid695" value="695"/>
                  <input name="questionid" type="hidden" id="questionid" value="695" />
				  <input name="postid" type="hidden" id="postid" value="695" />
                  <input name="messageid" type="hidden" id="messageid695" value="3" />
                  <textarea name="frmBody" cols="90" rows="17" id="frmPost695"></textarea>
                  <br />
                  <br />

                  <input name="Submit" type="button" value="Save Reply" id="button695"/>
                  </div></td>
            <td width="4%" valign="top"><div align="right"></div>
              <div align="right"><img src="/images/buttons/textbox_size.gif" width="24" height="249" border="0" usemap="#Map695MapMap" /></div>
              <map name="Map695MapMap" id="Map695">
                <area shape="rect" coords="-2,160,36,260" href="#null" onclick="makeSmaller('frmPost695');"/>
                <area shape="rect" coords="-23,-7,30,75" href="#null" onclick="makeLarger('frmPost695');" />
              </map></td>
          </tr>

        </table>
	    </form>
 
Your submit button is of type button not of type submit. Buttons don't submit the form, submits (or images) do.
 
I have no idea how that happened! But thanks a lot for pointing that out... It would have taken me a while to figure that out...

Jason
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top