Hi does anybody know any scripts that you can attach files to a contact form and once you click submit it sends the attachment to your email?
I've been trying to get it to work on a script I got and trying to implement it to my HTML contact form.
here is the instructions that I have uploaded with a working example (came with the instructions)
http://callumpirie.com/dev/uploader/
I am trying to implement it to this website (click the Yes radio button to view more of the form)
http://callumpirie.com/dev/uploader/test2.php
heres the code on the test2.php page.
CODE:
<?php if(!empty($uploaded_files)): ?>
<ul id="success">
<?php foreach($uploaded_files as $k=>$v): ?>
<li><?php echo $v; ?></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
<?php if(isset($errors)): ?>
<ul id="errors">
<?php foreach($errors as $k=>$v): ?>
<li><?php if(!is_numeric($k)){ echo $k.': ';} echo $v; ?></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
<div class='input file'>
<label>Select File: </label>
<input type='file' name='file[]' />
<a href='#' class='add_another_file_input hide'>
<img src='./img/add.png' alt='Add Icon' />
</a>
</div>
<div class='input buttons'>
<button type='submit' name='upload' id='upload'>Upload</button>
</div>
</fieldset>
<?php //pr($upload); ?>
Unless anybody has a better or easier script any help would be awesome.
Thanks.
Posted on Friday, 10th February 2012