Answer the question
In order to leave comments, you need to log in
Cross-domain submission of data from a form?
I configured .htaccess correctly (in any case, it no longer swears). The scheme is as follows:
Site1 - has a form, its js-handler on Site2, exactly like the form for processing the result.
JS-validation of the form on the site2 side works. But the data is empty and does not come... maybe I made a mistake in the code?
This is how sending data in JS looks like
$.post("http://сайт1/форма.php", { n: n1},
function(data){ $("#mess").html(data);});
$name = mysql_real_escape_string(strip_tags($_POST['n']));
/*итд, стандартно*/
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question