Can't submit form

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • dmitry_makarov
    Corporal

    • Nov 2006
    • 15

    Can't submit form

    Hello,

    I've got a problem with my form.

    When I try to submit it, it says:

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error.
    More information about this error may be available in the server error log.


    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.



    I've checked everything several times but it still doesn't work? And what are these 2 errors?



    My form web page: www.handelgate.com/application.html - than press "apply now" button!




    My processor script (I've used it before and it worked perfectly)




    <?PHP
    $mailto = "mail*****.com";
    $email = $HTTP_POST_VARS['email'];
    if ($email == "") {
    $email = $mailto;
    }
    $mailsubj = "Handelgate Job Application";
    $mailhead = "From: $email\n";
    reset ($HTTP_POST_VARS);
    $mailbody = "
    Name: ".$name."
    Surname: ".$surname."
    Patronimic: ".$patronimic."
    Birth date: ".$birthdate."
    Birth place: ".$birthplace."
    Nationality: ".$nationality."
    Family status: ".$familystatus."
    Kids: ".$kids."
    Kids plans: ".$kidsplans."
    Country: ".$country."
    Region: ".$region."
    City: ".$city."
    Address: ".$address."
    Fact address: ".$factaddress."
    Home phone: ".$homephone."
    Mobile: ".$mobile."
    Email 1: ".$email1."
    Email 2: ".$email2."
    Skype: ".$skype."
    Select education: ".$selectedu."
    Education start: ".$edustart."
    Education end: ".$eduend."
    Education form: ".$eduform."
    Education country: ".$educountry."
    Education name: ".$eduname."
    Education dept: ".$edudept."
    Profession: ".$profession."
    Training: ".$training."
    Computer skills: ".$computerskills."
    Software: ".$software."
    Work: ".$work."
    Job Title: ".$jobtitle."
    License: ".$license."
    Car: ".$car."
    Smoke: ".$smoke."
    Smoked: ".$smoked."
    Alcohol: ".$alcohol."
    Ill: ".$ill."
    Chronicle: ".$chronicle."
    *********: ".$*********."
    ********* type: ".$*********2."
    Prison: ".$prison."
    Under investigation: ".$investigation."
    Army: ".$army."
    Army problems: ".$armyconflict."
    Selfdescription: ".$selfdescription."
    Interests: ".$interests."
    Learning: ".$learning."
    Plans: ".$plans."
    :\n";
    while (list ($key, $val) = each ($HTTP_POST_VARS))
    {
    if ($key!="submit")
    {
    $mailbody .= "$key : $val\n";
    }
    }
    mail($mailto, $mailsubj, $mailbody, $mailhead);

    header("Location: http://www.handelgate.com/apply_thank_you.html");

    ?>


    My form code (the beginning)

    <td width="537" valign="top"><form id="apply" name="apply" method="post" action="apply.php">
    <table width="472" height="2521" border="0" cellpadding="0" cellspacing="1" class="table_form">
    <tr>
    <td width="162" height="28"><strong>Личные данные</strong></td>
    <td width="310">&nbsp;</td>
    </tr>
    <tr>
    <td height="22">Имя</td>
    <td><input name="name" type="text" id="Имя" size="40" /></td>
    </tr>
    <tr>
    <td height="22">Фамилия</td>
    <td><input name="surname" type="text" id="Фамилия" size="40" /></td>
    </tr>
    <tr>
    <td height="22">Отчество</td>
    <td><input name="patronimic" type="text" id="Отчество" size="40" /></td>
    </tr>
    <tr>
    <td height="22">Дата рождения</td>
    <td><input name="birthdate" type="text" id="Дата рождения" size="40" /></td>
    </tr>
    <tr>
    <td height="22">Место рождения</td>
    <td><input name="birthplace" type="text" id="Место рождения" size="40" /></td>
    </tr>
    <tr>
    <td height="22">Гражданство</td>
    <td><input name="nationality" type="text" id="Национальность" size="40" /></td>
    </tr>
    <tr>
    <td height="140">Семейное положение</td>
    <td><p>
    <label>
    <input type="radio" name="familystatus" value="married" />
    женат/ замужем</label>
    <br />
    <label>
    <input type="radio" name="familystatus" value="single" />
    холост/ незамужем</label>
    <br />
    <label>
    <input type="radio" name="familystatus" value="divorced" />
    разведен/ разведена</label>
    <br />
    <label>
    <input type="radio" name="familystatus" value="widower" />
    вдовец/ вдова</label>
    </p>
    <p><br />
    </p></td>
    </tr>
    <tr>
    <td height="21">Имеете ли Вы детей?</td>
    <td><p>
    <label>
    <input type="radio" name="kids" value="yes" />
    Да</label>
    <label>
    <input type="radio" name="kids" value="no" />
    Нет</label>
    <br />
    <label></label>
    <br />
    </p></td>
    </tr>
    <tr>
    <td height="21">Планируете?</td>
    <td><p>
    <label>
    <input type="radio" name="kidsplans" value="yes" />
    Да</label>
    <label>
    <input type="radio" name="kidsplans" value="no" />
    Нет</label>
    <br />
    <label></label>
    <br />
    </p></td>
    </tr>
    <tr>
    <td height="28">&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td height="22">Страна</td>
    <td><input name="country" type="text" id="Страна" size="40" /></td>
    </tr>
    <tr>
    <td height="22">Регион/ край</td>
    <td><input name="region" type="text" id="Регион" size="40" /></td>
    </tr>
    <tr>
    <td height="22">Город</td>
    <td><input name="city" type="text" id="Город" size="40" /></td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td height="67">Адрес постоянного проживания (прописка)</td>
    <td><textarea name="address" cols="32" rows="4" id="Адрес проживания"></textarea></td>
    </tr>
    <tr>
    <td height="31">Адрес фактического проживания</td>
    <td><textarea name="factaddress" cols="32" rows="4" id="Фактический адрес"></textarea></td>
    </tr>
    <tr>
    <td height="30">Домашний телефон (код страны/ город/ номер)</td>
    <td><input name="homephone" type="text" id="Домашний телефон" size="40" /></td>
    </tr>
    <tr>
    <td height="22">Мобильный телефон </td>
    <td><input name="mobile" type="text" id="Мобильный телефон" size="40" /></td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td height="22">E-mail 1 </td>
    <td><input name="email1" type="text" id="email1" size="40" /></td>
    </tr>
    <tr>
    <td height="22">E-mail 2 <span class="table11"></span> </td>
    <td><input name="email2" type="text" id="email2" size="40" /></td>
    </tr>
    <tr>
    <td height="22">Skype ID </td>
    <td><input name="skype" type="text" id="skype" size="40" /></td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td><strong>Образование</strong></td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td height="22">Образование</td>
    <td><select name="selectedu" id="Образование">
    <option value=""> - Выберите из списка - &nbsp;&nbsp;&nbsp;</option>
    <option value="Высшее">Высшее</option>
    <option value="Неполное высшее">Неполное высшее</option>
    <option value="Среднее специальное">Среднее специальное</option>
    <option value="Среднее техническое">Среднее техническое</option>
    <option value="Среднее">Среднее</option>
    <option value="Неоконченное">Неоконченное</option>
    </select> </td>
    </tr>
    <tr>
    <td height="29">Время обучения </td>
    <td>с&nbsp;
    <input name="edustart" type="text" id="Начало обучения" size="13" />
    &nbsp;по&nbsp;
    <input name="eduend" type="text" id="Окончание обучения" size="13" /></td>
    </tr>
    <tr>
    <td height="22">Форма обучения <span class="table11"></span> </td>
    <td><select name="eduform" id="Форма обучения">
    <option value=""> - Выберите из списка - &nbsp;&nbsp;&nbsp;</option>
    <option value="Дневная">Дневная</option>
    <option value="Вечерняя">Вечерняя</option>
    <option value="Заочная">Заочная</option>
    <option value="Ускоренная заочная">Ускоренная заочная</option>
    </select> </td>
    </tr>
    <tr>
    <td height="25">&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td height="22">Страна, город </td>
    <td><input name="educountry" type="text" id="Страна, город обучения" size="40" /></td>
    </tr>
    <tr>
    <td height="22">Название учебного заведения </td>
    <td><input name="eduname" type="text" id="Учебное заведение" size="40" /></td>
    </tr>
    <tr>
    <td height="22">Факультет</td>
    <td><input name="edudept" type="text" id="Факультет" size="40" /></td>
    </tr>
    <tr>
    <td height="22">Специальность</td>
    <td><input name="profession" type="text" id="Профессия" size="40" /></td>
    </tr>
    <tr>
    <td height="30">&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td height="30">Тренинги, семинары, курсы повышения квалификации и т.п. (название, дата, содержание) </td>
    <td><textarea name="training" cols="32" rows="6" id="Тренинги"></textarea></td>
    </tr>
    <tr>
    <td height="30">&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td height="30">Опыт работы на ПК </td>
    <td><p>
    <label>
    <input type="radio" name="computerskills" value="basic" />
    Нет</label>
    <br />
    <label>
    <input type="radio" name="computerskills" value="beginner" />
    Начинающий пользователь</label>
    <br />
    <label>
    <input type="radio" name="computerskills" value="experienced" />
    Опытный пользователь</label>
    <br />
    <label>
    <input type="radio" name="computerskills" value="pro" />
    Профессионал</label>
    <br />
    </p></td>
    </tr>
    <tr>
    <td height="30">С каким ПО Вы работали? </td>
    <td><textarea name="software" cols="32" rows="4" id="Software"></textarea></td>
    </tr>
    <tr>
    <td height="22">&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td height="19"><strong>Трудовой стаж</strong></td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td height="30">Период, название организации, адрес, телефон, должность, должностные обязанности, уровень, з/п, форма найма, причины увольнения </td>
    <td><textarea name="work" cols="32" rows="8" id="Трудовой стаж"></textarea></td>
    </tr>
    <tr>
    <td height="21">&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td height="30"><strong>Прочие данные</strong></td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td height="22">На какую должность Вы претендуете? </td>
    <td><select name="jobtitle" id="Желаемая должность">
    <option value=""> - Выберите из списка - &nbsp;&nbsp;&nbsp;</option>
    <option value="Специалист по продажам">Специалист по продажам</option>
    <option value="Менеджер проекта">Менеджер проекта</option>
    <option value="Партнер">Партнер</option>
    <option value="Другое">Другое</option>
    </select> </td>
    </tr>
    <tr>
    <td height="30">&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td height="30">Есть ли у Вас водительское удостоверение? </td>
    <td><p>
    <label>
    <input type="radio" name="license" value="yes" />
    Да</label>
    <label>
    <input type="radio" name="license" value="no" />
    Нет</label>
    <br />
    <label></label>
    <br />
    </p></td>
    </tr>
    <tr>
    <td height="30">Есть ли у Вас личный автомобиль? </td>
    <td><p>
    <label>
    <input type="radio" name="car" value="yes" />
    Да</label>
    <label>
    <input type="radio" name="car" value="no" />
    Нет</label>
    <br />
    <label></label>
    <br />
    </p></td>
    </tr>
    <tr>
    <td height="30">Курите ли Вы? </td>
    <td><p>
    <label>
    <input type="radio" name="smoke" value="yes" />
    Да</label>
    <label>
    <input type="radio" name="smoke" value="no" />
    Нет</label>
    <br />
    <label></label>
    <br />
    </p></td>
    </tr>
    <tr>
    <td height="21">Курили ли раньше? </td>
    <td><p>
    <label>
    <input type="radio" name="smoked" value="yes" />
    Да</label>
    <label>
    <input type="radio" name="smoked" value="no" />
    Нет</label>
    <br />
    <label></label>
    <br />
    </p></td>
    </tr>
    <tr>
    <td height="30">&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td height="22">Как часто Вы употребляете спиртное? </td>
    <td><input name="alcohol" type="text" id="Часто употребляете спиртное?" size="40" /></td>
    </tr>
    <tr>
    <td height="22">Часто ли вы болеете? </td>
    <td><input name="ill" type="text" id="Часто ли болеете?" size="40" /></td>
    </tr>
    <tr>
    <td height="30">Страдаете ли Вы хроническими заболеваниями? </td>
    <td><p>
    <label>
    <input type="radio" name="chronicle" value="yes" />
    Да</label>
    <label>
    <input type="radio" name="chronicle" value="no" />
    Нет</label>
    <br />
    <label></label>
    <br />
    </p></td>
    </tr>
    <tr>
    <td height="30">Страдаете ли Вы инфекционными заболеваниями? </td>
    <td><p>
    <label>
    <input type="radio" name="*********" value="yes" />
    Да</label>
    <label>
    <input type="radio" name="*********" value="no" />
    Нет</label>
    <br />
    <label></label>
    <br />
    </p></td>
    </tr>
    <tr>
    <td height="22">Если да, уточните </td>
    <td><input name="*********2" type="password" id="Уточните про инфекции" size="40" /></td>
    </tr>
    <tr>
    <td height="30">&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td height="30">Привлекались ли Вы когда-либо к уголовной ответственности?</td>
    <td><p>
    <label>
    <input type="radio" name="prison" value="yes" />
    Да</label>
    <label>
    <input type="radio" name="prison" value="no" />
    Нет</label>
    <br />
    <label></label>
    <br />
    </p></td>
    </tr>
    <tr>
    <td height="21">Были ли под следствием? </td>
    <td><p>
    <label>
    <input type="radio" name="investigation" value="yes" />
    Да</label>
    <label>
    <input type="radio" name="investigation" value="no" />
    Нет</label>
    <br />
    <label></label>
    <br />
    </p></td>
    </tr>
    <tr>
    <td height="30">Проходили ли Вы службу в Вооруженных Силах? </td>
    <td><p>
    <label>
    <input type="radio" name="army" value="yes" />
    Да</label>
    <label>
    <input type="radio" name="army" value="no" />
    Нет</label>
    <br />
    <label></label>
    <br />
    </p></td>
    </tr>
    <tr>
    <td height="30">Имеется ли у Вас неурегулированный конфликт с МО? (для лиц мужского пола) </td>
    <td><p>
    <label>
    <input type="radio" name="armyconflict" value="yes" />
    Да</label>
    <input type="radio" name="armyconflict" value="no" />
    Нет<br />
    <label></label>
    <br />
    </p></td>
    </tr>
    <tr>
    <td height="20">&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td height="30">Опишите себя (Ваши достоинства и недостатки) </td>
    <td><textarea name="selfdescription" cols="32" rows="6" id="Опишите себя"></textarea></td>
    </tr>
    <tr>
    <td height="30">Чем Вы интересуетесь? Чем занимаетесь в свободное время?</td>
    <td><textarea name="interests" cols="32" rows="6" id="Интересы"></textarea></td>
    </tr>
    <tr>
    <td height="17">&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td height="30">Готовы ли Вы потратить внерабочее время на обучение? </td>
    <td><p>
    <label>
    <input type="radio" name="learning" value="yes" />
    Да</label>
    <label>
    <input type="radio" name="learning" value="no" />
    Нет</label>
    <br />
    <label></label>
    <br />
    </p></td>
    </tr>
    <tr>
    <td height="30">Какие у Вас планы на будущее? </td>
    <td><textarea name="plans" cols="32" rows="6" id="Планы на будущее"></textarea></td>
    </tr>
    <tr>
    <td height="36">&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td height="36">&nbsp;</td>
    <td><input name="submit" type="submit" id="submit" value=" Submit " />
    &nbsp;&nbsp;
    <input name="Reset" type="reset" id="Reset" value=" Reset " /></td>
    </tr>
    </table>
    </form></td>


    Sorry, it a bit long.

    Thank you!
  • navaldesign
    General & Forum Moderator

    • Oct 2005
    • 12080

    #2
    Re: Can't submit form

    This is a permission issue. Conect with FTP and make sure that your action page has permissions set to 644.

    However,i don't understand what the entire first part of the script

    $mailbody = "
    Name: ".$name."
    Surname: ".$surname."
    Patronimic: ".$patronimic."
    ....................................
    Army: ".$army."
    Army problems: ".$armyconflict."
    Selfdescription: ".$selfdescription."
    Interests: ".$interests."
    Learning: ".$learning."
    Plans: ".$plans."
    :\n";

    stands for. These strins are nowhere defined, so you will revieve a list of the fields, and then , the last part of the script, will submit again all the field names and values.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

    Comment

    Working...
    X