
<h1>Submit a Help Request</h1>

<%=
  frm::form
    ( 
        action => 'mailto:support@back2front.ca',
        -check => [ 
            "Contact Name"  => [ "*" ],
            "Email Address" => [ "email" ],
            "Phone Number"  => [ "phone" ],
            [ 'Phone Number', 'Email Address' ] => 
                sub{ 
                    'At least one of Phone Number or Email Address must be entered to allow us to respond to requests.' if ! param ( 'Phone Number' ) and ! param ( 'Email Address' ) 
                },
            "Request Details" => [ 
                sub{ 
                    'Please enter the details of your inquiry.' if ! frm::check ( $_ => '*' ) 
                }, 
                '*' 
            ],
            frm::check('captcha')
        ]
    )
%>

<blockquote>

<%= frm::step_text
      ( form    => "Please fill out the form below with any inquiry you"
                     . " might have.",
        receipt => "Your request has been submitted."
                     . " You will be contacted shortly." ) %>

  <table>
    <tr>
      <td><b>Contact Name:</b> *</td>
      <td><%= frm::input ( type => 'text', -label => undef, name => "Contact Name",
                               size => 30 ) %></td>
    </tr>
    <tr>
      <td><b>Company:</b></td>
      <td><%= frm::input ( type => 'text', -label => undef, name => "Company",
                               size => 30 ) %></td>
    </tr>
    <tr>
      <td><b>Email Address:</b></td>
      <td><%= frm::input ( type => 'text', -label => undef, name => "Email Address",
                               size => 30 ) %></td>
    </tr>
    <tr>
      <td><b>Phone Number:</b></td>
      <td><%= frm::input ( type => 'text', -label => undef, name => "Phone Number",
                               size => 30 ) %></td>
    </tr>
  </table>

  <p>

  <table>
    <tr>
      <td><b>Details of your inquiry:</b> *</td>
    </tr>
    <tr>
      <td>
        <%= frm::input ( type => 'textarea', -label => undef, name    => "Request Details",
                            rows    => 8,
                            columns => 50 ) %></td>
    </tr>
    <tr><td>&nbsp;</td></tr>
    <tr><td><%= frm::input ( type => 'captcha' ) %></td></tr>    
    <tr>
      <td align="LEFT">
        <blockquote>
          <%= frm::input ( type => 'submit', label => frm::page ( 0 => "Submit Request", 1 => "Reset" ) ) %>
        </blockquote>
      </td>
    </tr>
  </table>

</blockquote>

</form>
