I have a question :
When i combine php and javascript as in the code below, my current php page does not navigate to timesheet.php until i write document.write() in my javascript code? Why is it so? It slows down reloading the form and a white screen also flashes before timesheet.php is loaded? How can i fix this thing?
function nextdate(userid,weeknum)
{
weeknum ++;
var date=document.userform.weekof.value;
document.write();
self.location='timesheet.php?userid='+userid+'&ndate='+date+'&wno='+weeknum;
}