Your input field should look something like this:
<input id="firstname" name="firstname" type="text" value="<?php
if (ValidatedField('index_965','index_965')) {
if ((strpos((",".ValidatedField("index_965","index_96 5").","), "," . "1" . ",") !== false || "1" == "")) {
if (!(false)) {
?>First name is required<?php //WAFV_Conditional index.php index_965(1
}
}
}?>" onfocus="if (this.value == 'First name') this.value=''" onblur="if (this.value == '') this.value='First name'" />
In regard to your second question, you probably could do it as you said. But Another way you can do it is in javascript. So on the submit event of of the form, create a function that checks if the value is First Name then return false, otherwise return true.