[thelist] Forms

jsWalter jsWalter at torres.ws
Thu Oct 23 03:09:13 CDT 2003


I did an experiment...

The file I tested is listed below.

It has a single "master" form, and 3 child forms, each siblings to each
other.

Other words, I did not nest this more than one deep.

My results...

each, beta, gamma and delta, responded with their individual items.

Alpha, the master, did not respond at all.

If I made gamma a child of beta, both gamma and beat sent items from both
forms.

Alpha still did nothing.

Same holds true when I nested each into the other. each child responded with
all 3 items.

Again, alpha still did nothing.

Just thought I'd share.

I don't see the value of nesting forms.

I see the value of having mini forms on the same page, but like Jeff said,
send everything and have the process on the server.

After all, you can define multiple SUBMIT buttons, each with a unique name,
you can use that to process what you need done.

Walter




<form action="/cgi-bin/reflector.pl"
      method="post"
      name="form1"
      id="form1"
      target="_self">

	<form action="/cgi-bin/reflector.pl"
	      method="post"
	      name="form2"
	      id="form2"
	      target="_self">

		<input type="text" value="beta" id="beta" name="beta" />
		<input type="submit" id="beta_btn" value="beta_btn">
	</form>

	<form action="/cgi-bin/reflector.pl"
	      method="post"
	      name="form3"
	      id="form3"
	      target="_self">

		<input type="text" value="gamma" id="gamma" name="gamma" />
		<input type="submit" id="gamma_btn" value="gamma_btn">
	</form>

	<form action="/cgi-bin/reflector.pl"
	      method="post"
	      name="form4"
	      id="form4"
	      target="_self">

		<input type="text" value="delta" id="delta" name="delta" />
		<input type="submit" id="delta_btn" value="delta_btn">
	</form>

	<input type="text" value="alpha" id="alpha" name="alpha" />
	<input type="submit" id="alpha_btn" value="alpha_btn">
</form>




More information about the thelist mailing list