You are here: Re: Two Submit buttons on one form « PHP Programming Language « IT news, forums, messages
Re: Two Submit buttons on one form

Posted by Rik Wasmus on 01/12/08 13:14

On Sat, 12 Jan 2008 13:40:39 +0100, <ktstone2678@gmail.com> wrote:

> I have a basic shopping cart setup, currently the user clicks a button
> to remove an item from the cart. The form action posts to itself in
> order to update the item list.
>
> Is it possible to have another button in the same form that posts to a
> different location?
>
> Please hold your comments if they're not constructive. I am aware of
> the existence of Google, it just hasn't worked for me here.

Javascript would work, but is unreliable.
Why not post to a page, that on the basis of said button, includes one or
the other script? Or a check at the top of the script that possible
decides to include another one and then exits?
--
Rik Wasmus

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация