|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
submitting two forms with one button
I want to use the marvous WYSIWYG editor and a series of standard input boxes on the same page. I have been through the forum and someone hinted at some ideas and i couldn't get them to work. I was hoping someone could give me some more detailed explaination or any other ideas.
The problem is that the editor cannot be inside a form, so my input boxes are in one form and the editor is submitted by another button (inside a form). I could use 2 buttons but i want to avoid this if poss. here is the code lifted from the forum: <input type="submit" value="Email" onSubmit="document.all.form_name.action='something else.php';"> or <form name="myform"> </form> .......editor stuff......... # Now for "special" IE code... <button onclick="document.myform.submit()">Submit</button> |
|
#2
|
|||
|
|||
|
Why not have a hidden field such as:
<input type=hidden name="msg" value=""> Then just populate this field when the submit button is pressed like so: Code:
<input type="SUBMIT" name="submit" value="send"
onclick="document.all.msg.value = document.all.editor.value">
__________________
__________________________________________________ _ Wil Moore III, MCP | Integrations Specialist | Senior Consultant Are You Listed...? | DigitallySmooth Inc. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Programming Tools > submitting two forms with one button |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|