我正在使用window.prompt
在字段中输入数据(电子邮件地址)。
现在我想将在MySQL数据库中输入的值存储起来...我使用PHP作为我的服务器端语言。
function onPlayerStateChange(event) {
var time, rate, remainingTime;
clearTimeout(stopPlayTimer);
if (event.data == YT.PlayerState.PLAYING) {
time = player.getCurrentTime();
// Add .4 of a second to the time in case it's close to the current time
// (The API kept returning ~9.7 when hitting play after stopping at 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;
}
}
}