Index: branches/2.8.x/CHANGELOG
===================================================================
--- branches/2.8.x/CHANGELOG	(revision 1589)
+++ branches/2.8.x/CHANGELOG	(revision 1590)
@@ -11,6 +11,9 @@
 ! = Update/Change
 
 =========================== add small Features 2.8.2 ==========================
+25 Jan-2012 Build 1590 Werner v.d.Decken(DarkViper)
+! mod form: added request var to submit a request identifier.
+! argument ?fri=12345 on GET-view will submit 'FormRequestId: 12345' by email
 25 Jan-2012 Build 1589 Dietmar Woellbrink (Luisehahne)
 # fixed starting upgrade-script if missing revision in settings
 25 Jan-2012 Build 1588 Werner v.d.Decken(DarkViper)
Index: branches/2.8.x/wb/admin/interface/version.php
===================================================================
--- branches/2.8.x/wb/admin/interface/version.php	(revision 1589)
+++ branches/2.8.x/wb/admin/interface/version.php	(revision 1590)
@@ -51,5 +51,5 @@
 
 // check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled)
 if(!defined('VERSION')) define('VERSION', '2.8.2');
-if(!defined('REVISION')) define('REVISION', '1589');
+if(!defined('REVISION')) define('REVISION', '1590');
 if(!defined('SP')) define('SP', 'SP2');
Index: branches/2.8.x/wb/modules/form/view.php
===================================================================
--- branches/2.8.x/wb/modules/form/view.php	(revision 1589)
+++ branches/2.8.x/wb/modules/form/view.php	(revision 1590)
@@ -154,6 +154,12 @@
 ?>
 			<form <?php echo ( ( (strlen($form_name) > 0) AND (false == $use_xhtml_strict) ) ? "name=\"".$form_name."\"" : ""); ?> action="<?php echo htmlspecialchars(strip_tags($_SERVER['SCRIPT_NAME'])).'';?>" method="post">
 				<input type="hidden" name="submission_id" value="<?php echo $_SESSION['form_submission_id']; ?>" />
+				<?php
+				$iFormRequestId = isset($_GET['fri']) ? intval($_GET['fri']) : 0;
+				if($iFormRequestId) {
+					echo '<input type="hidden" name="fri" value="'.$iFormRequestId.'" />'."\n";
+				}
+				?>
 				<?php // echo $admin->getFTAN(); ?>
 				<?php
 				if(ENABLED_ASP) { // first add some honeypot-fields
@@ -423,7 +429,10 @@
 					} else {
 						// Adding the IP to the body and try to send the email
 						// $email_body .= "\n\nIP: ".$_SERVER['REMOTE_ADDR'];
-
+						$iFormRequestId = isset($_POST[fri]) ? intval($_POST['fri']) : 0;
+						if($iFormRequestId) {
+							$email_body .= "\n\nFormRequestID: ".$iFormRequestId;
+						}
 						$recipient = preg_replace( "/[^a-z0-9 !?:;,.\/_\-=+@#$&\*\(\)]/im", "", $email_fromname );
 						$email_fromname = preg_replace( "/(content-type:|bcc:|cc:|to:|from:)/im", "", $recipient );
 						$email_body = preg_replace( "/(content-type:|bcc:|cc:|to:|from:)/im", "", $email_body );
@@ -522,4 +531,4 @@
 		}
 	}
 
-}
+}
\ No newline at end of file
