I have a pretty simple jQuery ajax thing, but I want to mix the form data that JS retrieves with some PHP variables, and they all submit as part of the ajax GET. If it works ?:
var longform = $("input:text").serialize();
$.ajax({
url: 'actions/create.php',
data: longform + "domain=<?php echo $domain; ?>&useragent=<?php echo $useragent; ?>&ip=<?php echo $ip; ?>&cookieuser=<?php echo $cookieuser; ?>",
Currently, when create.php tries to throw variables back, they are empty.
UPDATE
After checking the source, as suggested, it looks like this:
data: longform + "&domain=example.com&useragent=Mozilla/5.0
source
share