6 item. Home » Blog » Examples » – Example Template-Group FT Project. 6 item. 5. Example Template-Group FT Project. 6 item. Example Template-Group FT Project. 6 item. Home » Blog » Examples » – Example Template-Group FT Project. 6 item. 5. Example Template-Group FT Project. 6 item.Q:
How to change source url in MySql on new window opened
i have mysql and php codes. I am new in php. In my web page there is one main form which uses jQuery and ajax code to send a variable to a php function. This function opens a new window with another form. The ajax variable is passed to the new window from the main form. But the new window dont open with this variable. It takes the last variable passed from the main form. Can anyone tell me what is the problem? I tried several approaches and they didn't work.
Here is the code of my ajax:
$("#myform").submit(function() {
$.ajax({
type:"POST",
url:"update.php",
data:"first="+$("#first").val()+"&last="+$("#last").val()+"&name="+$("#name").val(),
success: function(data) {
alert("updated");
window.open("update.php");
}
});
return false;
Related links:
Comments