Forums

Problem with attachments

mcwoodley 24 Aug, 2008
Hello,

First of all I would like to say this is a great component for Joomla, it has already saved me valuable time.

I have searched for solutions on the forum and could not find anything that I have not already tried. I am having a problem getting an attachment to show up in my emails. It is also not showing up in the upload directory. I am running Joomla 1.5, Chrono Engine 2.5 J1.5 RC3.1. I have changed the permissions to the upload directory to 777. enctype="multipart/form-data" is present in the form tag. File uploads are enabled for doc|docx. I am kind of stumped on why it is not working. Also I am not sure if it is related but it is not adding data to the database table, I do have another form on the same site which is passing data to a table so I can work on that issue at a later time.

Thanks in advance.

Below is the code of the form:
<form  action="" method="post" enctype="multipart/form-data" name="Job Application" id="Job Application">
 <table width="37%" border="0" cellpadding="5">
  <tr>
    <td width="31%"> <label>Job Posting:</label></td>
    <td width="69%"><input type="text" name="Position" tabindex="1" /></td>
  </tr>
  <tr>
    <td> <label>First Name:</label></td>
    <td><input type="text" name="First_Name" tabindex="2" /></td>
  </tr>
  <tr>
    <td> <label>Last Name:
    
    </label></td>
    <td><input type="text" name="Last_Name" tabindex="3" /></td>
  </tr>
  <tr>
    <td> <label>Email Address:
    
    </label></td>
    <td><input type="text" name="Email_Address" tabindex="4" /></td>
  </tr>
  <tr>
    <td valign="top"> <label>Street Address:
    
    </label></td>
    <td><textarea name="Street_Address" cols="60" rows="5" tabindex="5"></textarea></td>
  </tr>
  <tr>
    <td><label>City:
    
    </label></td>
    <td><input type="text" name="City" tabindex="6"/></td>
  </tr>
  <tr>
    <td> <label>State:
    
    </label></td>
    <td><input type="text" name="State" tabindex="7" /></td>
  </tr>
  <tr>
    <td> <label>Zip Code:
    
    </label></td>
    <td><input type="text" name="Zip_Code" tabindex="8" /></td>
  </tr>
  <tr>
    <td><label>Phone #:
    
    </label></td>
    <td><input type="text" name="Phone" tabindex="9" /></td>
  </tr>
  <tr>
    <td colspan="2"> <fieldset><legend>Days of the Week Available:</legend>
  <p>
    <label>
    <input type="checkbox" name="Monday" value="yes" />
    Mon</label>
    <label>
    <input type="checkbox" name="Tuesday" value="yes" />
    Tues</label>
    <label>
    <input type="checkbox" name="Wednesday" value="yes" />
    Wed</label>
    <label>
    <input type="checkbox" name="Thursday" value="yes" />
    Thu</label>
    <label>
    <input type="checkbox" name="Friday" value="yes" />
    Fri</label>
    <label>
    <input type="checkbox" name="Saturday" value="yes" />
    Sat</label>
    <label>
    <input type="checkbox" name="Sunday"yes" />
    Sun</label>
  </p>
  </fieldset></td>
    </tr>
  <tr>
    <td colspan="2"><table width="405">
      <tr>
        <td><label>Work Hours Desired? </label>
          </td>
      </tr>
      <tr>
        <td width="397"><label>
          <input type="radio" name="Work_Hours_Desired" value="Full-time" />
          Full-time</label></td>
      </tr>
      <tr>
        <td><label>
          <input type="radio" name="Work_Hours_Desired" value="Part-time" />
          Part-time</label></td>
      </tr>
      <tr>
        <td><label>
          <input type="radio" name="Work_Hours_Desired" value="Temporary" />
          Temporary</label></td>
      </tr>
      <tr>
        <td><label>
          <input type="radio" name="Work_Hours_Desired" value="Seasonal" />
          Seasonal</label></td>
      </tr>
    </table></td>
    </tr>
  <tr>
    <td> <label>Salary Required:
    
    </label></td>
    <td><input type="text" name="Salary" /></td>
  </tr>
  <tr>
    <td colspan="2"><label>Special Skills or Qualifications Summary:<br />
      <br />
    <textarea name="Special Skills" cols="60" rows="4"></textarea>
    </label></td>
    </tr>
  <tr>
    <td><label>Attach your cover letter & resume:<br />
    </label></td>
    <td><input type="file" name="attachment"  /></td>
  </tr>
  <tr>
    <td colspan="2"><label>If a resume is not provided, list prior work experience for the past 3 years:<br />
      <br />
    <textarea name="Experience" cols="60" rows="4"></textarea>
    </label></td>
    </tr>
  <tr>
    <td colspan="2"><p><em>I certify that the facts contained   in this application are true and complete to the best of my knowledge and   understand that, if employed, falsified statements on this application shall be   grounds for dismissal.<br />
      <br />
  I authorize investigation of all statements   contained herein and the references listed above to give you any and all   information concerning my previous employment and any pertinent information they   may have, personal or otherwise, and release all parties from all liability for   any damage that may result from furnishing the same to you. I understand and   agree that, if hired, my employment is for no definite period of time and may,   regardless of the date and payment of my wages and salary, be terminated at any   time without prior notice.</em></p>
  <p>
    <label>
    <input type="checkbox" name="ageement" value="yes" />
    I agree to the above statement and wish to submit my application.</label>
  </p>
  <p>
    <input type="submit" name="Apply Online" value="Submit" />
  </p></td>
    </tr>
  
</table>
  </form>

Edit:
I have also basically recreated the form on a test site with the same results or lack of. I have attached the backup of the form.
mcwoodley 24 Aug, 2008
Here is the backup of the form.
Max_admin 24 Aug, 2008
remove the form tags from code!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
mcwoodley 25 Aug, 2008
Many thanks for the quick reply. That did the trick. I am still having issues with it adding data to the table and validation, but I will work on that and search to see if there is a solution already posted.

Thanks again, great support!
This topic is locked and no more replies can be posted.