Se da functia
function ttgg35ytgh45ygh4565fgf4t43egg() {
if (jQuery) {
(function($) {
$('#resultDiv').hide();
$('#progressBar').show();
$.ajax({
type: "POST",
url: "http://"+baseUrl+"/descarca.php",
data: "4gr4353gt3g34ggtrhw5%YERHewtgd4="+$('#urlField').val(),
success: function (msg) {
$("#resultField").val(msg);
$('#resultDiv').show();
$('#progressBar').hide();
}
});
})(jQuery);
}
}
CU HTML
<form method="post" action="" id="downloadForm">
<p>Introduce adresa URL si apasa Enter sau apasa butonul de download:</p>
<input type="text" name="downloadurl" value="URL" id="urlField" />
<button type="submit">Download</button>
</form>
Nu inteleg ce trebuie pus in descarca.php
ca $_POST[‘urlField’] -> gen