sandbudd Posted March 19, 2008 Share Posted March 19, 2008 I have a php javascipt combo to mail multiple attachments in an email but I have done something wrong and hope someone can help me...thanks in advance <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head><script src="multifile_compressed.js"></script> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>FORT WAYNE ANODIZING REQUEST FOR QUOTE</title> <!-- Begin CSS and Javascript needed for from-mailer --> <link type="text/css" rel="stylesheet" href="formstyle.css"> <script defer="defer" type="text/javascript">function sf(){document.mailform.Name.focus()}</script> <!-- End CSS and Javascript needed for from-mailer --> <style type="text/css"> <!-- .style1 { font-size: 12px; font-weight: bold; color: #000066; } --> </style> </head> <!-- Begin onLoad needed for from-mailer first field focus --> <body onLoad="sf()"> <!-- End onLoad needed for from-mailer first field focus --> <center> <!-- Begin HTML needed for from-mailer --> <div class="form3d"><div class="formBox"> <form name="mailform" method="post" action="makeform/sendform.php" enctype="multipart/form-data"> <input type="hidden" name="To" value="[email protected]"> <table width="556" cellspacing="0" cellpadding="0"> <tr> <td> <table class="itable" cellspacing="0" cellpadding="0"> <tr> <td width="52" class="allc1"><div align="left">Name:</div></td> <td width="273" class="t1r1c2"> <div align="left"> <input type="text" class="name" name="Name" maxlength="58" tabindex="1"> </div></td> <td width="67" class="allc1"><div align="left">Company:</div></td> <td width="260" class="t2r1c2"> <div align="left"> <input type="text" class="company" name="Company" maxlength="58" tabindex="2"> </div></td> </tr> <tr> <td class="allc1"><div align="left">Address:</div></td> <td class="t2r1c2"> <div align="left"> <input type="text" class="address" name="Address" maxlength="110" tabindex="3"> </div></td> <td class="allc1"><div align="left">City:</div></td> <td class="t2r1c2"> <div align="left"> <input type="text" class="city" name="City" maxlength="110" tabindex="4"> </div></td> </tr> <tr> <td class="allc1"><div align="left">State:</div></td> <td class="t2r1c2"> <div align="left"> <select name="State" tabindex="5"> <option value="alabama">Alabama</option> <option value="Alaska">Alaska</option> <option value="Arizona">Arizona</option> <option value="Arkansas">Arkansas</option> <option value="California">California</option> <option value="Colorado">Colorado</option> <option value="Connecticut">Connecticut</option> <option value="Delaware">Delaware</option> <option value="Florida">Florida</option> <option value="Georgia">Georgia</option> <option value="Hawaii">Hawaii</option> <option value="Idaho">Idaho</option> <option value="Illinois">Illinois</option> <option value="Indiana">Indiana</option> <option value="Iowa">Iowa</option> <option value="Kansas">Kansas</option> <option value="Kentucky">Kentucky</option> <option value="Louisiana">Louisiana</option> <option value="Maine">Maine</option> <option value="Maryland">Maryland</option> <option value="Massachusetts">Massachusetts</option> <option value="Michigan">Michigan</option> <option value="Minnesota">Minnesota</option> <option value="Mississippi">Mississippi</option> <option value="Missouri">Missouri</option> <option value="Montana">Montana</option> <option value="Nebraska">Nebraska</option> <option value="Nevada">Nevada</option> <option value="New Hampshire">New Hampshire</option> <option value="New Jersey">New Jersey</option> <option value="New Mexico">New Mexico</option> <option value="New York">New York</option> <option value="North Carolina">North Carolina</option> <option value="North Dakota">North Dakota</option> <option value="Ohio">Ohio</option> <option value="Oklahoma">Oklahoma</option> <option value="Oregon">Oregon</option> <option value="Pennsylvania">Pennsylvania</option> <option value="Rhode Island">Rhode Island</option> <option value="South Carolina">South Carolina</option> <option value="South Dakota">South Dakota</option> <option value="Tennessee">Tennessee</option> <option value="Texas">Texas</option> <option value="Utah">Utah</option> <option value="Vermont">Vermont</option> <option value="Virginia">Virginia</option> <option value="Washington">Washington</option> <option value="West Virginia">West Virginia</option> <option value="Wisconsin">Wisconsin</option> <option value="Wyoming">Wyoming</option> </select> </div></td> <td class="allc1"><div align="left">Zip:</div></td> <td class="t2r1c2"> <div align="left"> <input type="text" class="zip" name="Zip" maxlength="110" tabindex="6"> </div></td> </tr> <tr> <td class="allc1"><div align="left">Email::</div></td> <td class="t2r1c2"> <div align="left"> <input type="text" class="email" name="Email" maxlength="58" tabindex="7"> </div></td> <td class="allc1"> </td> <td class="t2r1c2"> </td> </tr> <tr> <td class="allc1"><div align="left">Phone::</div></td> <td class="t2r1c2"> <div align="left"> <input type="text" class="phone" name="Phone" maxlength="58" tabindex="8"> </div></td> <td class="allc1"><div align="left">Fax:</div></td> <td class="t2r1c2"> <div align="left"> <input type="text" class="fax" name="Fax" maxlength="58" tabindex="9"> </div></td> </tr> <tr> <td colspan="3"><div align="left"><span class="style1">Process requested (please check all that apply): </span></div></td> <td class="t2r1c2"><div align="left"></div></td> </tr> <tr> <td colspan="2"><div align="left"> <label><span class="t2r1c2"> <input type="checkbox" name="Process Requested 1" value="Type II (Conventional Anodize)" tabindex="10"> Type II (Conventional Anodize)</span></label> </div></td> <td colspan="2"><div align="left"><span class="t2r1c2"> <input type="checkbox" name="Process Requested" value="Type III (Hard Coat Anodize)" tabindex="11"> Type III (Hard Coat Anodize)</span></div></td> </tr> <tr> <td colspan="2"><div align="left"></div> <div align="left"><span class="t2r1c2"> <input type="checkbox" name="Process Requested3" value="(Burnish, Deburr)" tabindex="12"> (Burnish, Deburr) </span></div></td> <td colspan="2"><div align="left"></div> <div align="left"><span class="t2r1c2"> <input type="checkbox" name="Process Requested4" value="Conversion" tabindex="13"> Chromate Conversion </span></div></td> </tr> <tr> <td colspan="2"><span class="t2r1c2"> <input type="checkbox" name="Process Requested5" value="Conversion Hex" tabindex="14"> Chromate <span class="t1r1c2">Conversion Hex –free </span></span></td> <td colspan="2"><span class="t2r1c2"> <input type="checkbox" name="Process Requested6" value="Impregnation" tabindex="15"> Impregnation </span></td> </tr> <tr> <td colspan="2"><span class="t2r1c2"> <input type="checkbox" name="Process Requested7" value="Strip" tabindex="16"> Strip </span></td> <td class="allc1"> </td> <td class="t2r1c2"> </td> </tr> <tr> <td colspan="4"><table width="100%" border="0" cellspacing="0"> <tr> <td width="38%"><div align="left"> Part Number:</div></td> <td width="62%"> <div align="left"> <input type="text" class="part" name="Part Number" maxlength="58" tabindex="17"> </div></td> </tr> </table></td> </tr> <tr> <td colspan="4"><table width="100%" border="0" cellspacing="0"> <tr> <td width="38%"><div align="left"> Part Description (part name or basic size):</div></td> <td width="62%"> <div align="left"> <input type="text" class="part description" name="Part Description" maxlength="100" tabindex="18"> </div></td> </tr> </table></td> </tr> <tr> <td colspan="4"><table width="100%" border="0" cellspacing="0"> <tr> <td width="25%"><div align="left"> Alloy :</div></td> <td width="39%"> <div align="left"> <input type="text" class="alloy" name="Alloy" maxlength="100" tabindex="19"> </div></td> <td width="14%"><div align="left"> Quantity :</div></td> <td width="22%"> <div align="left"> <input type="text" class="quanitity" name="Quantity" maxlength="100" tabindex="20"> </div></td> </tr> <tr> <td colspan="4"><table width="100%" border="0" cellspacing="0"> <tr> <td width="25%"><div align="left"> Specifications : </div></td> <td width="39%"> <div align="left"> <input type="text" class="alloy" name="Alloy" maxlength="100" tabindex="21"> </div></td> <td width="14%"><div align="left"> Color : </div></td> <td width="22%"> <div align="left"> <input type="text" class="alloy" name="Alloy" maxlength="100" tabindex="22"> </div></td> </tr> </table></td> </tr> <tr> <td colspan="4"><table width="100%" border="0" cellspacing="0"> <tr> <td width="31%"><div align="left"> Notes / Special Requests : </div></td> <td width="69%"> <div align="right"> <textarea name="Notes / Special Requests" COLS=65 ROWS=4 tabindex="23"></textarea> </div> <div align="left"> </div> <div align="left"> </div></td> </tr> </table></td> </tr> <tr> <td colspan="4"><span class="style1">How did you hear about us? </span></td> </tr> <tr> <td colspan="4"><table width="100%" border="0" cellspacing="0"> <tr> <td width="32%"><span class="t2r1c2"> <input type="checkbox" name="Process Requested52" value="Conversion Hex" tabindex="24"> I am a repeat customer </span></td> <td width="25%"><span class="t2r1c2"> <input type="checkbox" name="Process Requested522" value="Conversion Hex"tabindex="25"> </span> Internet Search </td> <td width="21%" valign="bottom"><div align="left"> <p> Internet Directory </p> </div></td> <td width="22%"> <div align="left"> <input type="text" class="part" name="Part Number" maxlength="58" tabindex="26"> </div></td> </tr> </table></td> </tr> <tr> <td colspan="4"><table width="100%" border="0" cellspacing="0"> <tr> <td width="9%" height="20" valign="bottom"><div align="left"> <p> Referral</p> </div></td> <td width="28%"> <div align="left"> <input type="text" class="part" name="Part Number" maxlength="58" tabindex="27"> </div></td> <td width="23%"><span class="t2r1c2"> <input type="checkbox" name="Process Requested523" value="Conversion Hex" tabindex="28"> </span>Yellow Pages </td> <td width="17%" valign="bottom"><div align="left"> Trade Show </div></td> <td width="23%"> <div align="right"> <input type="text" class="part" name="Part Number" maxlength="58" tabindex="29"> </div></td> <td width="0%"> </td> </tr> </table></td> </tr> <tr> <td colspan="4"><table width="100%" border="0" cellspacing="0"> <tr> <td width="11%"><div align="left"> Other : </div></td> <td width="89%"> <div align="right"> <textarea name="Other hear about us" COLS=80 ROWS=1 tabindex="30"></textarea> </div> <div align="left"> </div> <div align="left"> </div></td> </tr> </table></td> </tr> </table></td> </tr> </table> <table class="itable" cellspacing="0" cellpadding="0"> <tr> <td width="56" colspan="3"> </td> </tr> <tr> <td width="221" class="t2r1c2"> </td> </tr> </table> <table class="itable" cellspacing="0" cellpadding="0"> <tr> <td class="allc1">Message:</td> <td class="t3r1c2" rowspan="2"><textarea class="message" name="Message" rows="5" cols="64" tabindex="31"></textarea></td> <td class="t3r1c3"> </td> <td class="t3r1c4">Contact Us!</td> </tr> <tr> <td class="t3r2c1"> <input type="reset" class="reset" value="Reset"></td> <td class="t3r2c3"></td> <td class="t3r2c4"><img src="makeform/sendmail.gif" alt="" width="48" height="48"></td> </tr> </table> <table class="itable" cellspacing="0" cellpadding="0"> <tr> <td class="allc1"> <img src="makeform/paperclip.gif" hspace="6" align="middle" alt=""><span class="kern">File:</span></td> <td class="t4r1c2"> <input id="my_file_element" type="file" name="file_1" > Attachment (optional)</td> Files: <!-- This is where the output will appear --> <div id="files_list"></div> <script> <!-- Create an instance of the multiSelector class, pass it the output target and the max number of files --> var multi_selector = new MultiSelector( document.getElementById( 'files_list' ), 3 ); <!-- Pass in the file element --> multi_selector.addElement( document.getElementById( 'my_file_element' ) ); </script> </tr> <tr> <td class="allc1"></td> <td class="t4r2c2"> </td> </tr> <tr> <td class="allc1"></td> <td class="t1r1c5"> <input type="submit" class="submit" value="Submit" tabindex="33"></td> </tr> </table> </td> </tr> </table> </form> </div> </div> <!-- End HTML needed for from-mailer --> </center> </body> </html> Link to comment https://forums.phpfreaks.com/topic/96926-php-javascipt-can-not-get-the-mail-attachments-to-send-please-help/ Share on other sites More sharing options...
trq Posted March 19, 2008 Share Posted March 19, 2008 Were going to need more details than 'done something wrong'. Link to comment https://forums.phpfreaks.com/topic/96926-php-javascipt-can-not-get-the-mail-attachments-to-send-please-help/#findComment-495955 Share on other sites More sharing options...
sandbudd Posted March 19, 2008 Author Share Posted March 19, 2008 I receive the emails fine but the attachments are not there? Link to comment https://forums.phpfreaks.com/topic/96926-php-javascipt-can-not-get-the-mail-attachments-to-send-please-help/#findComment-495958 Share on other sites More sharing options...
trq Posted March 19, 2008 Share Posted March 19, 2008 Can you post the relvent code then. The part that actually sends the email? Link to comment https://forums.phpfreaks.com/topic/96926-php-javascipt-can-not-get-the-mail-attachments-to-send-please-help/#findComment-495959 Share on other sites More sharing options...
sandbudd Posted March 19, 2008 Author Share Posted March 19, 2008 here is the code for sending and the js file <table class="itable" cellspacing="0" cellpadding="0"> <tr> <td class="allc1"> <img src="makeform/paperclip.gif" hspace="6" align="middle" alt=""><span class="kern">File:</span></td> <td class="t4r1c2"><input id="my_file_element" type="file" name="file_1" > Attachment (optional)</td> Files: <!-- This is where the output will appear --> <div id="files_list"></div> <script> <!-- Create an instance of the multiSelector class, pass it the output target and the max number of files --> var multi_selector = new MultiSelector( document.getElementById( 'files_list' ), 3 ); <!-- Pass in the file element --> multi_selector.addElement( document.getElementById( 'my_file_element' ) ); </script> <link type="text/css" rel="stylesheet" href="formstyle.css"> <script defer="defer" type="text/javascript">function sf(){document.mailform.Name.focus()}</script> Link to comment https://forums.phpfreaks.com/topic/96926-php-javascipt-can-not-get-the-mail-attachments-to-send-please-help/#findComment-495963 Share on other sites More sharing options...
trq Posted March 19, 2008 Share Posted March 19, 2008 There is no php in any of the code you have posted. Are you sure your in the right place? Link to comment https://forums.phpfreaks.com/topic/96926-php-javascipt-can-not-get-the-mail-attachments-to-send-please-help/#findComment-495965 Share on other sites More sharing options...
sandbudd Posted March 19, 2008 Author Share Posted March 19, 2008 I guess what I am asking do you know the code to send multiple emails with php rather than using javascript? Link to comment https://forums.phpfreaks.com/topic/96926-php-javascipt-can-not-get-the-mail-attachments-to-send-please-help/#findComment-495968 Share on other sites More sharing options...
trq Posted March 19, 2008 Share Posted March 19, 2008 Finally, we get a question! mail. Link to comment https://forums.phpfreaks.com/topic/96926-php-javascipt-can-not-get-the-mail-attachments-to-send-please-help/#findComment-495970 Share on other sites More sharing options...
sandbudd Posted March 19, 2008 Author Share Posted March 19, 2008 sorry kind of new to the board Link to comment https://forums.phpfreaks.com/topic/96926-php-javascipt-can-not-get-the-mail-attachments-to-send-please-help/#findComment-495973 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.