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?
Nesting of form element is not permitted.
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.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)