Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Graphics Buttons and Forms

 
   Web Hosting Problem Solving Community! (Home) -> Webmaster RSS
Next:  Need review for this website monitoring tool - IP..  
Author Message
no_user

External


Since: Jul 03, 2003
Posts: 98



(Msg. 1) Posted: Tue Aug 05, 2003 7:03 am
Post subject: Graphics Buttons and Forms
Archived from groups: alt>www>webmaster (more info?)

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

 >> Stay informed about: Graphics Buttons and Forms 
Back to top
Login to vote
mysterian_1

External


Since: Jul 28, 2003
Posts: 15



(Msg. 2) Posted: Tue Aug 05, 2003 7:03 am
Post subject: Re: Graphics Buttons and Forms [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

<INPUT TYPE="image" NAME="submit" SRC="/yourimages/formsubmit.gif"
WIDTH="60" HEIGHT="20"
BORDER="0" ALT="SUBMIT!">

"see above" <no_user.TakeThisOut@no_particular_domain.com> wrote in message
news:slrnbiub7b.7j5.no_user@localhost.localdomain...
 > 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
 ><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Graphics Buttons and Forms 
Back to top
Login to vote
sherry_anne

External


Since: Jul 10, 2003
Posts: 22



(Msg. 3) Posted: Tue Aug 05, 2003 7:03 am
Post subject: Re: Graphics Buttons and Forms [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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 Smile 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 
Back to top
Login to vote
user104

External


Since: Jun 28, 2003
Posts: 1662



(Msg. 4) Posted: Tue Aug 05, 2003 3:28 pm
Post subject: Re: Graphics Buttons and Forms [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Lexx" <mysterian_1 RemoveThis @hotmail.com> wrote in message
news:JUHXa.77253$6a3.2116105@twister.rdc-kc.rr.com...
 > <INPUT TYPE="image" NAME="submit" SRC="/yourimages/formsubmit.gif"
 > WIDTH="60" HEIGHT="20"
 > BORDER="0" ALT="SUBMIT!">

Where's the value?
--
Charles Sweeney
<a style='text-decoration: underline;' href="http://www.CharlesSweeney.com" target="_blank">www.CharlesSweeney.com</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Graphics Buttons and Forms 
Back to top
Login to vote
no_user

External


Since: Jul 03, 2003
Posts: 98



(Msg. 5) Posted: Tue Aug 05, 2003 7:59 pm
Post subject: Re: Graphics Buttons and Forms [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Decided to do two things....just re-write the damn script and not use a form
and two, keep my mouth shut from now on after I complete a client's job.

kb
 >> Stay informed about: Graphics Buttons and Forms 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> Webmaster All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]