--- class.tslib_content.php.orig 2005-05-17 09:47:43.571557920 +0200
+++ class.tslib_content.php 2005-05-17 15:38:18.327788912 +0200
@@ -1572,6 +1572,12 @@
$fieldname_hashArray = Array();
$cc = 0;
+ // Formname;
+ $formname = $GLOBALS['TSFE']->uniqueHash();
+ if (ctype_digit($formname{0})) { // must start with a letter
+ $formname = 'a'.$formname;
+ }
+
foreach($dataArr as $val) {
$cc++;
@@ -1631,7 +1637,7 @@
// Accessibility: Set id = fieldname attribute:
if ($conf['accessibility']) {
- $elementIdAttribute = ' id="'.$confData['fieldname'].'"';
+ $elementIdAttribute = ' id="'.$formname.'_'.md5($confData['fieldname']).'"';
} else {
$elementIdAttribute = '';
}
@@ -1826,7 +1832,7 @@
// Field:
$fieldLabel = $confData['label'];
if ($conf['accessibility']) {
- $fieldLabel = '';
+ $fieldLabel = '';
}
// Getting template code:
@@ -1930,8 +1936,6 @@
}
}
- // Formname;
- $formname = $GLOBALS['TSFE']->uniqueHash();
if ($conf['REQ']) {
$validateForm=' onsubmit="return validateForm(\''.$formname.'\',\''.implode(',',$fieldlist).'\',\''.rawurlencode($conf['goodMess']).'\',\''.rawurlencode($conf['badMess']).'\',\''.rawurlencode($conf['emailMess']).'\')"';
$GLOBALS['TSFE']->additionalHeaderData['JSFormValidate'] = '';