Project

General

Profile

Bug #70315

Updated by Ralf Zimmermann over 8 years ago

If you put 2 forms on a page and submit it, both forms are send by mail. 

 Try it: 

 Form1 

 <pre> 
 class = standardForm 
 enctype = multipart/form-data 
 method = post 
 prefix = otherForm 
 confirmation = 1 
 postProcessor { 
	 1 = mail 
	 1 { 
		 senderEmailField = email 
		 senderNameField = surname 
		 subjectField = subject 
		 recipientEmail = mail@example.com 
		 priority = 1 
		 organization = TRITUM 
		 senderEmail = mail@example.com 
		 subject = sdsdsd 
	 } 
 } 
 10 = TEXTLINE 
 10 { 
	 name = textfield 1 
	 label { 
		 value = Edit this label 1 
	 } 
 } 
 20 = SUBMIT 
 20 { 
	 class = xxx 
	 name = submit1 6 
	 value = Submit form 
 } 
 </pre> 

 Form2 

 <pre> 
 class = standardForm 
 enctype = multipart/form-data 
 method = post 
 prefix = standardForm 
 confirmation = 1 
 postProcessor { 
	 1 = mail 
	 1 { 
		 senderEmailField = email 
		 senderNameField = surname 
		 subjectField = subject 
		 recipientEmail = mail@example.com 
		 priority = 1 
		 organization = TRITUM 
		 senderEmail = mail@example.com 
		 subject = sdsdsd 
	 } 
 } 
 10 = TEXTLINE 
 10 { 
	 name = textfield 1 
	 label { 
		 value = Edit this label 
	 } 
 } 
 20 = SUBMIT 
 20 { 
	 class = xxx 
	 name = submit2 6 
	 value = Submit form 
 } 
 </pre>

Back