Adding e-mail field to contact form in install process

skala
Yannick Warnier 14 years ago
parent 57d7391e79
commit 4ea2af2019
  1. 2
      main/inc/ajax/install.ajax.php
  2. 6
      main/install/install.lib.php

@ -13,6 +13,7 @@ switch ($action) {
if (!empty($_POST)) {
// get params from contact form
$person_name = $_POST['person_name'];
$person_email = $_POST['person_email'];
$person_role = $_POST['person_role'];
$financial_decision = $_POST['financial_decision'];
$contact_language = $_POST['language'];
@ -44,6 +45,7 @@ switch ($action) {
// call method ws_add_contact_information
$contact_params = array(
'person_name' => $person_name,
'person_email' => $person_email,
'person_role' => $person_role,
'financial_decision' => $financial_decision,
'contact_language' => $contact_language,

@ -1391,9 +1391,13 @@ function get_contact_registration_form() {
<div id="div_sent_information"></div>
<form>
<div class="row">
<div class="label"><span class="form_required">*</span>'.get_lang('PersonName').'</div>
<div class="label"><span class="form_required">*</span>'.get_lang('Name').'</div>
<div class="formw"><input id="person_name" type="text" name="person_name" size="30" /></div>
</div>
<div class="row">
<div class="label"><span class="form_required">*</span>'.get_lang('Email').'</div>
<div class="formw"><input id="person_name" type="text" name="person_email" size="30" /></div>
</div>
<div class="row">
<div class="label"><span class="form_required">*</span>'.get_lang('CompanyName').'</div>
<div class="formw"><input id="company_name" type="text" name="company_name" size="30" /></div>

Loading…
Cancel
Save