MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: Multiple Forms...




Hi Jason,

I think you could do this with Javascript with something like:

<input type="submit"
 onClick="this.form.action"='something'"
 name="mv_submit" value="do something">

or

<INPUT TYPE=checkbox NAME="[quantity-name]"
      onClick="this.form.action='[process-order]',this.form.submit()"
      VALUE=0>

to submit it with a value inside.

(pulled it from an old sample demo, maybe it's still in, for removing items
from the cart. If you'd use document.forms[0].action and
document.forms.submit instead which is default in the simple demo, it would
submit all the forms on the page I guess, which is not what you'd want, so I
changed that in this.blabla for myself as well)

Ciao,

-Gideon



> ******    message to minivend-users from Jason Korkin
<jkorkin@korksoft.com>     ******
>
> Hello all,
> This is not really regarded to the Minivend list, however, here is a
> quick question that I have in regards to using multiple forms on a
> site...
>
> Can I embed a form within a form within a form, and then when going to
> post to these forms, will the browser remember which embeded form to
> post to?
>
> ie.:
>
> <FORM ACTION=post1>
> do stuff here
> <FORM ACTION=post2>
> other stuff here
>
> </FORM>
> </FORM>
>
> and if I click on the submit button in post2, will it post to post2
> correctly with only the form data from the post2 area?
>
> Thanks in advance,
>
> Jason Korkin.
>
> PS> I know this is basic HTML 101, but for the life of me, I cant
> remember!!!
> --
>
> Jason Korkin - jkorkin@korksoft.com
> KORKSOFT
>
> +1 (603) 472-8262
> http://www.korksoft.com
> Design, Hosting, Custom Programming, Database Mgt., E-Commerce
> -
> To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
> email with 'UNSUBSCRIBE minivend-users' in the body to
Majordomo@minivend.com.
> Archive of past messages: http://www.minivend.com/minivend/minivend-list
>



Search for: Match: Format: Sort by: