Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2004
    Posts
    202

    Unanswered: request.form("xxxx") problem

    Hi there,

    I got here one little quetion which involve loading in the same form.
    I got this one file of html which consist of asp codes.

    the structure of the code is as follow:

    <html>
    <body>
    <form action="this html file"....>
    <input type="image" src="xxx" value="search" name="btnSearch">
    </form>
    <%if request("btnSearch")="search"%>
    statement and codes...................
    <%end if%>
    </body>
    </html>

    the question here is how come when i press the image button, the value request("btnSearch") return empty instead of "search"?

    thanx

  2. #2
    Join Date
    Dec 2003
    Posts
    454
    <input type="image" src="xxx" value="" name="btnSearch">

  3. #3
    Join Date
    Jul 2003
    Location
    SoCal
    Posts
    721
    Are you trying to make the "Search" button an image? Why do you need to pass a value in the button itself? Why not simply put it in a hidden form type or the query string of the form post?
    That which does not kill me postpones the inevitable.

  4. #4
    Join Date
    Nov 2003
    Location
    Christchurch, New Zealand
    Posts
    1,618
    Has anyone else noticed how this thread has a weird name in the subscribed threads list of the user control panel??

  5. #5
    Join Date
    Jul 2003
    Location
    SoCal
    Posts
    721
    Seems ok to me.. what are you smoking, and why aren't you sharing...
    That which does not kill me postpones the inevitable.

Posting Permissions

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