JAVAscript Replace all's
function replaceAll(find, replace, str) {
return str.replace(new RegExp(find, 'g'), replace);
}
Usage : strinput = replaceAll("&"," and ",strinput);
Replace all new lines in a text area to BRs
strinput = strinput.replace(/(?:\r\n|\r|\n)/g, '
');
Get a Field value
var strinput = document.getElementById('notes').value;
Update a DIV
document.getElementById("DivID").innerHTML='Updating';
_____________________________
# Date Selector!
#Input screen
#read out put!
$startdate=safetext2($_POST[startdate]);
$dlday=substr($startdate,0,2);
$dlmon=substr($startdate,3,2);
$dlyer=substr($startdate,6,4);
if ($dlday<>'' and $dlmon<>'' and $dlyer<>'') {
$duedate=mktime(0,0,0,$dlmon,$dlday,$dlyer);
}
# stop enter key
__________________________________
TR Hover Change Colour!:
Blue lines