Came forth ->>see above <<- saying:
>I did a stupid thing...I told someone, if they wanted, I'd use graphics
>buttons in place of the usual submit button on a form. I had a form with
>three different submit buttons...each with a different value and each value
>passed to a php script, then a mysql query.
>
>As a rule I never use graphics for submit buttons. The problem I have now is
>I can't seem to figure out how to pass different values using the 3 different
>graphic submit buttons. There is no value field if the imput type is image.
>
>I recall way back when, there was a way to do this...for the life of me I
>can't remember and my ref book has nothing nor do the docs I downloaded from
>w3.
>
>What am I missing???
>
>any help appreciated.
>
>kb
You didn't say if you are using asp or php (or elsewhat) so here's an
asp example. BTW, you might want to do a test prog to loop through
all variables & values sent/rec'd; helps in debugging.
Code to make button, w/in html:
<input type="image" value=1 name="btnNewPost" src="sitepics/_new.gif"
alt="Make a New Post">
Code w/in receiving .asp prog to test for that button:
If len(request.form("btnNewPost.x"))>0 OR _
len(request.form("btnNewPost") & "")>0 then
'......statements
End if
I used to only test for btnName.x (or btnName.y) but I ran tests
through several browsers and found a combination of both tests was
needed. I lurve standards

Don't ask me which and why, I don't
remember. And I'm grumpy.
hth,
Sherry
--
I have no email address any more except
@go.com. It's a cesspool of spam so I may
not see your message.
ck out: <a style='text-decoration: underline;' href="http://allmyfaqs.com/faq.pl?How_to_post" target="_blank">http://allmyfaqs.com/faq.pl?How_to_post</a><!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: Graphics Buttons and Forms