Hi,
I have a
jsp which is having two forms as below
<form name="frm2" method="post" action="../servlet/com.infy.cis.ui.marketing.CampaignSave">
<Input type="text" name="test1" value=">
<Input type="text" name="test2" value=">
</form>
<form name="attachmentForm" method="post" enctype="multipart/form-data" action="../servlet/com.infy.cis.ui.common.CampaignAttachmentWriter">
<input class="BrowseFile" name="filename" onchange="addAttachment();" onkeypress="return uploadAttachmentOnEnter()" type="file">
</input>
</form>
Now i need to merge these two forms to make my code work properly. If iam combining this code in one form and enctype="multipart/form-data" for the form it is not getting the values of text fields. If i removed the enctype it is not getting the file contens of the data.
Please help me how to resolve the issue as i need to merge these two forms into single form.
Thanks
Ravi