Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Aug 2002
    Location
    -
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Text for 'Submit Button' on Form

    Hi,


    I have the following code on a page, but would like to remove the image I am currently using for the submit button and replace it with some text instead, which would be clicked to submit the form..


    <FORM action="../results.asp?Search=true" method="POST" id="form1" name="form1">

    <DIV align="left">

    <INPUT type="hidden" name="Area" value="">
    <INPUT type="hidden" name="SFF_Category_Reference" value="blank">

    <INPUT type="image" value="Graduate" name="submit13" id=submit1 src="images/send.gif" width="125" height="25" border="0" target="main" alt="SEARCH NOW">
    </DIV>
    </FORM>


    I'm not sure what to change the input type to to get just text (and not in a textarea box etc..)

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Posts
    626
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Try this:
    <A HREF="#" onClick="document.form1.submit()">Search Now</A>

  • #3
    New Coder
    Join Date
    Aug 2002
    Location
    -
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks but I tried that and it didn't work - however after a bit of alteration (I want five such forms on one page) the code from the following link worked:

    http://webdevelopment.developersnetw...asp?Article=47


  •  

    Posting Permissions

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