Hi All (my first post here),
I've got a page with a form on, and a separate hidden form with an 'action' variable in (this is much shortened version!):
<FORM NAME="pageEditForm" METHOD="post">
<INPUT NAME="pagename" type="text" size="20" maxlength="20" value="main">
Another form is hidden:
<FORM NAME="hiddendiscardpageform" METHOD="post">
<INPUT NAME="action" TYPE="hidden" VALUE="discard">
The code for the button is:
Submitting one page is OK in the 'onclick', but the above sends only the last page in the list.
Reading on earlier posts, it seems one solution (acceptable to me if I can get it to work) is to post the 'action' from 'hiddendiscardpageform' to 'pageEditForm'.
Why a CSS button, instead of a normal submit button? The whole site uses these (menu's, etc), so it's in keeping with the theme.
Why not just put the action bit in the other form? Because there are five buttons on the page with different actions, but all send the information from the pageEditForm.
What do I need to change to get this to work? Any help would be MUCH appreciated, as I have been stuck on this for weeks, and despite trawling the web, can't find the answer (or more likely I'm too simple to see it