I'm using jQuery to open a popup and I'd like to send it data using the post method when it opens. Can anyone help me, thanks in advance.
I am currently passing the data using the get method so the data is a part in url, but I don't want the data to be visible in the url.
function openWindow(){
var name = $('#name').val();
var url = 'popup_window.php?name='+name;
window.open(
url,
'popUpWindow',
'height=400, \
width=650, \
left=300, \
top=100, \
resizable=yes, \
scrollbars=yes, \
toolbar=yes, \
menubar=no, \
location=no, \
directories=no, \
status=yes');
}
This is based on the answer in How to open popup and populate it with data from parent window?
Popup.html should contain: