Answer the question
In order to leave comments, you need to log in
What does the Options -MultiViews setting do?
Hey!
in .htaccess, which is in public, there are such lines
Options -MultiViews
It is clear that the Options directive determines which features of the server are available in this directory.
and "-" is removed from enabled options.
If you upload it to the hosting without commenting it, laravel does not work.
Why are they needed then? For nginx?
google does not find it, perhaps because of my incompetence :)
save, help :)
Answer the question
In order to leave comments, you need to log in
It seems like there was an extra dollar in front of the name
$(document).ready(function(){
$('button').on('click',function(e){
var name = $('#name').val();
$.post("connect.php", {data: name});
});
});
1) add at the end of the handler , otherwise you will have a form submit.
2) make a redirect not in the php script, but in the ajax response processing return false;
What do you want to get? If you need to add lines entered by the user to the file, then no form is needed, just finish ajax. If you need to go to http://films after user input, then no ajax is needed, correct the action and submit in the form.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question