Form within a form?
I have the code below (obviously has alot stripped but the problem still persists with that code).
The problem i get is that whatever button i press either new or sk it always relates to the first form.
<form method="post" action="?sID=1&cPath=">
<h3 class="actions">Actions<input type="image" name="new" src="boo.jpg" height="25px" width="40px" value="New"></h3>
<form method="post" action="?action=T">
<p>Within this form</p>
<input type="hidden" value="me" name="m">
<input type="submit" value="ss" name="sk">
What i want is the sk to relate to the form its inside and for new to relate to the first form?
Sorry but I can't read DTD very well.
<!ELEMENT FORM - - (%block;|SCRIPT)+ -(FORM) -- interactive form -->
Does the -(FORM) mean forms can't be nested?
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." Brian W. Kernighan
Nesting of form element is not permitted.
At least 98% of internet users' DNA is identical to that of chimpanzees
No, you can't nest the form element. I couldn't see how that would ever make any sense. If you need to pass information to two different pages on submit, which it looks like you're trying to do, pass the information to one page, and then have that page pass the information on to the second. This can be solved server side.
-Neal, the everyman's Mod.
My Own Niche in the Web
π ~= 3.14
3*14 = 42
Coincidence? I think not.
π = The Answer to Life, the Universe, and Everything.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)