ok here is more code...
This is the input part inside the form ->
PHP Code:
if ($nickname == 'Anonymous') {
$name = "<input id=\"sbCookie\" maxlength=\"22\" class=\"inputWidth\" onFocus=\"clearField(this);\" value=\"Anonymous\" onBlur=\"checkField(this);\" type=\"text\" name=\"".$field."0\">\n\r";
} else {
$name = "<input id=\"sbCookie\" maxlength=\"15\" class=\"inputWidth\" onFocus=\"clearField(this);\" value=\"".$SBTEXT['field_name']."\" onBlur=\"checkField(this);\" type=\"text\" name=\"".$field."0\" readonly=\"readonly\">\n\r";
}
and this is the javascript part which checks the input ->
Code:
if(form.elements[val+'0'].readonly) {
var nameBox = form.elements[val+'0'];
} else {
var nameBox = form.elements[val+'0'];
nameBox.value = "Guest: " + nameBox.value
}
the problem is, that i get the "Guest" Prefix every time..
no matter what.. plz help !!
thx
Bookmarks