MiniVend Akopia Services

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

Re: Multiple Forms...




Hmm, I know that I thought of using a single form with multiple submit
buttons a while ago.  MV uses this in the simple demo.  Remember that you
get a name and a value for each submit button. Also, the [set...] command
can be used to execute blocks of code when the submit button is clicked.  
Thus, you could use that to do different things when different buttons
where clicked.

Check the simple demo to see how it does submission.  You could take that
and modify it so that the [set ...] block sets a flag in the session state
that you can check on the next (processing) page.

I can't remember if you can have nested forms.  My guess is that while
HTML might allow it, your luck with the various browsers will not be so
good.

Best,
Kyle

On Sun, 22 Aug 1999, Jason Korkin wrote:

> ******    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: