Answer the question
In order to leave comments, you need to log in
What questions are asked at an interview for a trainee position at Yandex?
I'm going to become an intern at Yandex. What questions should I expect in an Intern (Python) interview? The network is full of topics discussing interviews for developer positions, but I did not find a discussion of internships. Therefore, who went - share your experience, I will be grateful :)
Answer the question
In order to leave comments, you need to log in
So your mail.php "dies" with 500 Internal Server Error. To do this, you need to understand what exactly causes the error.
Clean up mail.php to a simple one:
<?
$name = $_POST['name'];
$phone = $_POST['phone'];
mail('[email protected]', 'Code test', 'Message: '. $name .' - '. $phone);
Your script fulfills on event submit, from the form.
But your form does not have an element that generates this event:
You have two options. Either change the button to what I wrote above, or hang the click event handler on the button and call the send function.
Can anyone recommend a good script to send? Of all that I tried, not one did not send, maybe it's my curvature, or maybe hosting.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question