Image Submit Buttons

Results 1 to 3 of 3

Thread: Image Submit Buttons

  1. #1
    Join Date
    Dec 1969

    Default Image Submit Buttons

    I have two or more submit buttons (type="image"), onclicking a button, I get taken to another asp page where I want to determine which button was clicked. <BR><BR>It works fine if I use the standard button types but as soon as I change it to type=&#039image&#039 then.... the next asp page does not know what button was pressed.<BR><BR>Any Ideas<BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default Image Submit Buttons...

    You can check with a simple if statement : <BR><BR>if not isempty(request("addMag.x")) then<BR><BR>where addMag is the name of you button.<BR>I think &#039addMag.x&#039 returns the coordinates of where you clicked on the button, though I haven&#039t checked this.

  3. #3
    pdaly Guest

    Default RE: Image Submit Buttons

    What I would do is create a hidden field in the page. Make the images run a javascript function that sets the hidden field to some value that will identify which buton was clicked, then run form.submit(); That way the button name will be passed to the next page as a variable.<BR><BR>-Pete

Posting Permissions

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