----- Original Message -----
From: "cyberkate" <[EMAIL PROTECTED]>

> but I want to use this
> <input type="image" src="select.gif" name="PICTURES"
>  VALUE="card.gif" > but it does not take the value to the
> next step, the preview, and goes there without a submit,
> which is great ~ if it took the value with it. What is it that is
> wrong? I have tried lots of things, including action=submit,
> id ="card.gif" etc. All the cards have the name "PICTURES".

Actually input type="image" is another form of submit button, so that's why
it works without one.  But it works differently.  When you click a"submit"
button, it submits the form and passes either its own "name", or its "value"
if you gave it one.

When you click on an "image" input, it submits the form and returns two
values,  "name"=x and "name"=y where x and y are the coordinates of exactly
where on the button the mouse was when it was clicked.  So first you need to
give each button a different "name" so you know which one was clicked, then
check each name in turn for an x or y value.

Instead of using an image button to submit the form, you could use a
hyperlink to call the action page with a querystring:

<a href="nextpage?value=card.gif">
<img src="select.gif"></a>

Bj



____ � The WDVL Discussion List from WDVL.COM � ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] 
       Send Your Posts To: [EMAIL PROTECTED]
To change subscription settings to the wdvltalk digest version:
    http://wdvl.internet.com/WDVL/Forum/#sub

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to