Discussion Board

Results 1 to 1 of 1
  1. #1
    Registered User
    Join Date
    Aug 2004

    image input element types in form -problem


    I am having a problem with image input elements within a form.

    this is a portion of my code:
    <form action="./searchServlet">
    <img src="../images/search.gif" alt="" width="43" height="16" border="0"/>
    <input type="text" name="q" size="11" class="box"/>
    <input type="image" src="../images/search.gif" name="web" class="submit" value="Web-Search"/>
    <input type="image" src="../images/picsearch.gif" name="picture" class="submit" value="Pic-Search"/>

    It is a textbox with 2 input image 'buttons'. The intention is to pass the content of textbox q as a web or picture search, depending if the user clicks the web image or picture image.

    This works fine on web-browers (Firefox, IE) and most phone devices, clicking 'web' search the GET request contains:

    But clicking 'web' search using a Nokia 6600/7610 or Nokia Toolkit browser the reqest contains:

    So, is it possible to solve the above problem without having to make the 2 input elements type="submit", I would like to leave them as type="image".

    There was a similar post before but the 1 response had no solution.

    Last edited by seanos11; 2004-11-01 at 16:04.

Posting Permissions

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