javascript - How to store records entered in windows.prompt in mysql database -
i using window.prompt
enter data (email address) in field.
now want store value entered in field in mysql database... using php server-side language.
function onplayerstatechange(event) { var time, rate, remainingtime; cleartimeout(stopplaytimer); if (event.data == yt.playerstate.playing) { time = player.getcurrenttime(); // add .4 of second time in case it's close current time // (the api kept returning ~9.7 when hitting play after stopping @ 10s) if (time + .4 < stopplayat) { rate = player.getplaybackrate(); remainingtime = (stopplayat - time) / rate; stopplaytimer = settimeout(pausevideo, remainingtime * 1000); var pvalue=window.prompt("enter email"); document.getelementbyid("abc").value=pvalue; } } }
Comments
Post a Comment