Мне дали готовую страницу с формой обратной связи. я сделал это функциональным, добавив подтверждение формы и отправив php письмо. http://mdscomputers.ae/new/aruba/form.html имеет оригинальную форму и отлично работает
Мне понравилась эта форма, поэтому я использовал ее на другом веб-сайте, который я делаю. исходная форма содержала некоторые дополнительные материалы, которые мне не нужны, поэтому я удалил их, когда перевел форму на другой веб-сайт. код формы на другом сайте: -
У меня 2 проблемы: -
1) в исходной форме, когда я нажимал, введите в поле, которое отправляет форма. в измененной форме на другом сайте нажатие кнопки ввода в поле ничего не делает, и мне нужно нажать на кнопку отправки, чтобы отправить форму. Я думаю, что есть другой код на другом веб-сайте, который отключает отправку при нажатии Enter. я хочу быть в состоянии отправить, нажав ввод
2) в оригинальной форме действие работает нормально и открывает страницу, указанную мной при отправке формы. в измененной форме на другом веб-сайте я получаю сообщение об ошибке «страница не найдена», когда я нажимаю кнопку «Отправить», и она не открывает страницу, указанную в действии. сейчас я хочу открыть страницу с контактом при отправке формы
другой веб-сайт http://mdscomputers.ae/new/buyback/buyback.html, а измененная форма находится внизу страницы
<div class="mktoForm" id="elqForm">
<form id="elqForm" method="post" name="elqForm" action="contactus.php">
<div class="elqFormRow">
<div style="line-height:0px;font-size:0px;padding:0;margin:0;max-height:0px;">
<a name="eiel1718959"><img src="x.gif" width="1" height="0" style="display:block; height:0px !important;" class="anchorlink_image" alt=""></a>
</div>
<label for="Contact_First_Name"><strong>First Name</strong> *:</label>
<input type="text" required="required" id="Contact_First_Name" name="Contact_First_Name" autocomplete="off">
</div>
<div class="elqFormRow">
<div style="line-height:0px;font-size:0px;padding:0;margin:0;max-height:0px;">
<a name="eiel1718960"><img src="x.gif" width="1" height="0" style="display:block; height:0px !important;" class="anchorlink_image" alt=""></a>
</div>
<label for="Contact_Last_Name"><strong>Last Name</strong> *:</label>
<input type="text" required="required" id="Contact_Last_Name" name="Contact_Last_Name" autocomplete="off">
</div>
<div class="elqFormRow">
<div style="line-height:0px;font-size:0px;padding:0;margin:0;max-height:0px;">
<a name="eiel1718961"><img src="x.gif" width="1" height="0" style="display:block; height:0px !important;" class="anchorlink_image" alt=""></a>
</div>
<label for="Contact_Email"><strong>Business Email</strong> *:</label>
<input type="text" required="required" pattern="[+a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$" id="Contact_Email" name="Contact_Email" autocomplete="off">
</div>
<div class="elqFormRow">
<div style="line-height:0px;font-size:0px;padding:0;margin:0;max-height:0px;">
<a name="eiel1718962"><img src="x.gif" width="1" height="0" style="display:block; height:0px !important;" class="anchorlink_image" alt=""></a>
</div>
<label for="Job_Responsibility"><strong>Job Title</strong> *:</label>
<input type="text" required="required" id="Job_Responsibility" name="Job_Responsibility" autocomplete="off">
</div>
<div class="elqFormRow">
<div style="line-height:0px;font-size:0px;padding:0;margin:0;max-height:0px;">
<a name="eiel1718963"><img src="x.gif" width="1" height="0" style="display:block; height:0px !important;" class="anchorlink_image" alt=""></a>
</div>
<label for="Company_Name"><strong>Company Name</strong> *:</label>
<input type="text" required="required" id="Company_Name" name="Company_Name" autocomplete="off">
</div>
<div class="elqFormRow">
<div style="line-height:0px;font-size:0px;padding:0;margin:0;max-height:0px;">
<a name="eiel1718964"><img src="x.gif" width="1" height="0" style="display:block; height:0px !important;" class="anchorlink_image" alt=""></a>
</div>
<label for="Company_Country"><strong>Country</strong> *:</label>
<input type="text" required="required" id="Company_Country" name="Company_Country" autocomplete="off">
</div>
<div class="elqFormRow">
<div style="line-height:0px;font-size:0px;padding:0;margin:0;max-height:0px;">
<a name="eiel1718965"><img src="x.gif" width="1" height="0" style="display:block; height:0px !important;" class="anchorlink_image" alt=""></a>
</div>
<label for="Company_State_Province"><strong>City</strong> *:</label>
<input type="text" required="required" id="Company_State_Province" name="Company_State_Province" autocomplete="off">
</div>
<div class="elqFormRow">
<div style="line-height:0px;font-size:0px;padding:0;margin:0;max-height:0px;">
<a name="eiel1718966"><img src="x.gif" width="1" height="0" style="display:block; height:0px !important;" class="anchorlink_image" alt=""></a>
</div>
<label for="Contact_Phone_Number"><strong>Business Phone Number</strong> *:</label>
<input type="text" required="required" id="Contact_Phone_Number" name="Contact_Phone_Number" autocomplete="off">
</div>
<div class="elqFormRow">
<div style="line-height:0px;font-size:0px;padding:0;margin:0;max-height:0px;">
<a name="eiel1718966"><img src="x.gif" width="1" height="0" style="display:block; height:0px !important;" class="anchorlink_image" alt=""></a>
</div>
<label for="Numbe_Of_Employees"><strong>Number of Employees</strong> *:</label>
<select id="Numbe_Of_Employees" name="Numbe_Of_Employees">
<option value="bet10and49">Between 10 and 49</option>
<option value="bet50and99">Between 50 and 99</option>
<option value="bet100and199">Between 100 and 199</option>
<option value="ab200">Above 200</option>
</select>
</div>
<div class="elqFormRow text-center">
<div style="line-height:0px;font-size:0px;padding:0;margin:0;max-height:0px;">
<a name="eiel1718967"><img src="x.gif" width="1" height="0" style="display:block; height:0px !important;" class="anchorlink_image" alt=""></a>
</div>
<div class="elqFormRow text-center">
<input type="submit" id="elqFormSubmitBut" class="orange_btn" value="Submit" checkrequired="true">
</div>
</div>
</form>
</div>