Hi, i have a javascript function that opens a new window and at the same time uses php to write a couple variables to a database. The window opens and the php writes to the database but it's not writing the value of the javascript variable i am trying to asign to it.
here's my code.
function MM_openBrWindow(theURL,winName,features) { //v2.0
var title = document.form.txtEventTitle.value;
var info = document.form.txtEventInfo.value;
<?php
$conn = db_connect("dbname");
$Sql = "UPDATE tblTmpEvents SET EventTitle='title', EventInfo='info'";
$Result = mysql_query($Sql);
?>
win = window.open(theURL,'emailWin',features);
win.focus();
}
As you can see i am setting the variables title and info to the values of 2 text boxes on my form. I then want to write these variables to the database but i cant figure out how to get the value of those variables into the php code.
How would i go about this?
Thanks!😃