i 'm using php+js+mysql in aprogram but i have aproblem happen when the user click the refresh button ,this make the date in the entry form reposted to db
and this make agreet problem
if someone can help me to fix this problem plz do it
i think we can do it using js but the code i use just disable F5 but not the refresh button
here the code:[code=javascript]
<Script language="javas cript">
function checkKeyCode(ev t)
{
var evt = (evt) ? evt : ((event) ? event : null);
var node = (evt.target) ? evt.target : ((evt.srcElemen t) ? evt.srcElement : null);
if(event.keyCod e==116)
{
evt.keyCode=0;
return false
}
}
document.onkeyd own=checkKeyCod e;
</script>[/code]
and thanks
and this make agreet problem
if someone can help me to fix this problem plz do it
i think we can do it using js but the code i use just disable F5 but not the refresh button
here the code:[code=javascript]
<Script language="javas cript">
function checkKeyCode(ev t)
{
var evt = (evt) ? evt : ((event) ? event : null);
var node = (evt.target) ? evt.target : ((evt.srcElemen t) ? evt.srcElement : null);
if(event.keyCod e==116)
{
evt.keyCode=0;
return false
}
}
document.onkeyd own=checkKeyCod e;
</script>[/code]
and thanks
Comment