如何在mysql数据库中存储在windows.prompt中输入的记录

时间:2015-06-13 06:37:13

标签: javascript php mysql

我正在使用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;


      }
    }
  } 

0 个答案:

没有答案