Re: Image submit button not working.
| From: | sharri parsell | Date: | Tue, 18 Jul 2000 17:35:59 +0000 |
| Subject: | Re: Image submit button not working. | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-7108@lists.php.net to get a copy of this message | ||
<input type=\"image\" name=\"checkOut\" value=\"Add To Cart\"
src=\"images/addtocart.gif\">
this will result in 2 variables being set in the action script:
$checkOut_x and $checkOut_y. <input type=image> tags return the
x and y coordinates of the user click. as far as i know, both vars
will == "Add To Cart".
> Jay,
>
> I don't think the input type=image has a value property. You should pass
> the value in a hidden input in the form.
>
> Jason
> >
> >
> > Hello everyone--
> >
> > Here's a problem that I can't figure out. I have a form and I
> > have an image
> > as my submit button however as you can see from the line below I
> > set the var
> > to be checkOut with a value "Add To Cart" but when I press the button the
> > value isn't passed to the next page. My question is: How can you have a
> > submit button that is an image so that the values get passed?
> >
> > "<input type=\"image\" name=\"checkOut\" value=\"Add To
> > Cart\"
> > src=\"images/addtocart.gif\">
> >
> > Thanks,
> > Jay
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
> >
>
>
> _______________________________________________________
> Site Design, Hosting, and E-Commerce at www.webpipe.net
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>