There is a form that should transfer data to a php-processor that sends them to the database. At first I tried to send a POST request. But constantly the handler page produced a 500th error. Then I tried GET, the page opened, but there were no variables in the address bar.

<form id="form_298029" class="appnitro" method="get" action="newprofile.php"> <div class="form_description"> <h2>Добавление новой анкеты</h2> <p></p> </div> <ul> <li id="li_1"> <label class="description" for="element_1">Имя</label> <div> <input id="element_1" name="name" class="element text medium" type="text" maxlength="255" value="" /> </div> <p class="guidelines" id="guide_1"> <small>Введите имя</small> </p> </li> <li id="li_2"> <label class="description" for="element_2">Фамилия</label> <div> <input id="element_2" name="surname" class="element text medium" type="text" maxlength="255" value="" /> </div> <p class="guidelines" id="guide_2"> <small>Введите фамилию</small> </p> </li> <li id="li_3"> <label class="description" for="element_3">Отчество</label> <div> <input id="element_3" name="middle" class="element text medium" type="text" maxlength="255" value="" /> </div> <p class="guidelines" id="guide_3"> <small>Введите отчество</small> </p> </li> <li id="li_6"> <label class="description" for="element_6">Класс</label> <div> <select class="element select medium" id="element_6" name="klass"> <option value="1">8</option> <option value="2">9</option> <option value="3">10</option> <option value="4" selected="selected">11</option> </select> </div> <p class="guidelines" id="guide_6"> <small>Выберите класс</small> </p> </li> <li id="li_7"> <label class="description" for="element_7">Пол</label> <div> <select class="element select medium" id="element_7" name="gender"> <option value="1" selected="selected">Мужской</option> <option value="2">Женский</option> </select> </div> <p class="guidelines" id="guide_7"> <small>Выберите пол</small> </p> </li> <li id="li_4"> <label class="description" for="element_4">Email</label> <div> <input id="element_4" name="email" class="element text medium" type="text" maxlength="255" value="" /> </div> <p class="guidelines" id="guide_4"> <small>Введите email</small> </p> </li> <li id="li_8"> <label class="description" for="element_8">Контактный телефон</label> <div> <input id="element_8" name="phone" class="element text medium" type="text" maxlength="255" value="" /> </div> <p class="guidelines" id="guide_8"> <small>Введите ваш контактный телефон Пример: 89030123456</small> </p> </li> <li class="buttons"> <input type="hidden" name="form_id" value="298029" /> <input id="saveForm" class="button_text" type="submit" name="submit" value="Добавить анкету в базу" /> </li> </ul> </form> 
  • Then lay out the form. - Darik
  • show form? - Palmervan
  • but rather remove the form and show the handler code, an error in it. - Sh4dow

3 answers 3

Error 500 "Internal Server Error" occurs when it is impossible to run the script that you placed on the server, in case of errors in the script, as well as in the case when you put the wrong instruction in the .htaccess file. This list of the causes of the 500 error is not final, there are many reasons why the 500 error can occur. However, these three cases are the most common.

    Most likely problems on the server side, see the logs of the server itself, you may find your problem.

    • one
      problems in the brain can still be) - Palmervan Nov.
    • Witty. - Yegor Kubasov
    • 2
      Error 500 - either a serious error in the script (buffer overflow, attempt to read something inaccessible, ambiguous syntax), or a server failure. If often - then the first. So yes, the source of such problems is almost always in the brain. Also, format the code normally and turn on all error levels - error_reporting , display_errors - Sh4dow

    The error lies either on the server side, or, more likely, in the .htaccess file - if possible, in the studio.