Jump to content

php web form with multiple attachments only one attachment is received?


Recommended Posts

When I click the send the email is received correctly but I only receive one of the uploads?  Here is the code that I have been using.  Please help. This is form.php

<?php 	include_once( "form_call.php" ); ?>
<html>
<head>
<title>Request for Quote</title>
<meta http-equiv="Content-type" content="text/html; charset=iso-8859-1">
<meta name="keywords" content="">
<meta name="description" content="">
	<style type='text/css'>
	.form_title{
		color : #000000;
		font-size: 13px;
		font-family: verdana, Geneva, Arial, Helvetica, sans-serif;
		font-weight : bold;
	}

	.form_field {
		font-size : 13px;
		font-family : Verdana, Arial, Helvetica, sans-serif;
		color : #474747;
		font-weight : bold;
		text-align:left;
	}

	.form_text{
		font-size : 11px;
		font-family : Verdana, Arial, Helvetica, sans-serif;
		color : #000000;
	}

	.text_box{
		font-size : 11px;
		font-family : Verdana, Arial, Helvetica, sans-serif;
		color : #000000;
		width:200px;
	}

	.text_area{
		font-size : 11px;
		font-family : Verdana, Arial, Helvetica, sans-serif;
		color : #000000;
		width:200px;
		height:60px;
	}

	.text_select{
		font-size : 11px;
		font-family : Verdana, Arial, Helvetica, sans-serif;
		color : #000000;
	}

	.form_error{
		font-size : 11px;
		font-family : Verdana, Arial, Helvetica, sans-serif;
		color : #ff0000;
		font-weight : bold;
	}

	.copyright{
		font-size : 11px;
		font-family : Verdana, Arial, Helvetica, sans-serif;
		color : #000000;
	}

</style>
</head>
<body  marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
<center>
<meta http-equiv="content-type" content="text/html; charset=">


<!-- Begin: Form Description -->

<br><br><br>
<table cellspacing='16' cellpadding='0' border='0' align='center' ><tr><td>

<font class='form_title'></font>

</td></tr></table>

<!-- End: Your FormMail's Description -->





<!-- Begin: Form -->



<?php
if( !$isHideForm ): 
	global $sErr ;
	if( $sErr ) print "<br><a name='error'></a><center><font class='form_error' >$sErr</font></center><br>"; 

	$starColor = $sErr ? "#ff0000" : "#000000";
	$style=" class='form_text' ";
?>

<form name="frmFormMail" action="<?php print PHP_SELF ?>" method='post' enctype='multipart/form-data'>
<input type='hidden' name='formmail_submit' value='Y'>
<input type='hidden' name='esh_formmail_subject' value="Request For Quote">
<input type='hidden' name='esh_formmail_return_subject' value="Fort Wayne Anodizing">
<input type='hidden' name='esh_formmail_return_msg' value="Thank You for contacting Fort Wayne Anodizing.  Your requested information will be provided as soon as possible.">

<table cellspacing='16' cellpadding='0' border='0'  >
<tr>
	<td class="form_field" valign='top' align='right'>Name </td><td width='10'  aligh='right' valign='top'></td>
	<td class="form_text">
<input type="text" name="Name"  value="<?php  print HtmlSpecialChars( $HTTP_POST_VARS[ "Name" ] ); ?>" class='text_box'>
	</td>
</tr>

<tr>
	<td class="form_field" valign='top' align='right'>Company </td><td width='10'  aligh='right' valign='top'></td>
	<td class="form_text">
<input type="text" name="Company"  value="<?php  print HtmlSpecialChars( $HTTP_POST_VARS[ "Company" ] ); ?>" class='text_box'>
	</td>
</tr>

<tr>
	<td class="form_field" valign='top' align='right'>Address </td><td width='10'  aligh='right' valign='top'></td>
	<td class="form_text">
<input type="text" name="Address"  value="<?php  print HtmlSpecialChars( $HTTP_POST_VARS[ "Address" ] ); ?>" class='text_box'>
	</td>
</tr>

<tr>
	<td class="form_field" valign='top' align='right'>City </td><td width='10'  aligh='right' valign='top'></td>
	<td class="form_text">
<input type="text" name="City"  value="<?php  print HtmlSpecialChars( $HTTP_POST_VARS[ "City" ] ); ?>" class='text_box'>
	</td>
</tr>

<tr>
	<td class="form_field" valign='top' align='right'>State </td><td width='10'  aligh='right' valign='top'></td>
	<td class="form_text">
<select name="State" <? print $style; ?>>
<option value=''>- Select -</option>
<option  value="Alabama"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "Alabama" ); ?> > Alabama
<option  value="Alaska"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "Alaska" ); ?> > Alaska
<option  value="Arizona"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "Arizona" ); ?> > Arizona
<option  value="Arkansas"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "Arkansas" ); ?> > Arkansas
<option  value="California"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "California" ); ?> > California
<option  value="Colorado"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "Colorado" ); ?> > Colorado
<option  value="Connecticut"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "Connecticut" ); ?> > Connecticut
<option  value="Delaware"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "Delaware" ); ?> > Delaware
<option  value="Florida"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "Florida" ); ?> > Florida
<option  value="Georgia"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "Georgia" ); ?> > Georgia
<option  value="Hawaii"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "Hawaii" ); ?> > Hawaii
<option  value="Idaho"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "Idaho" ); ?> > Idaho
<option  value="Illinois"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "Illinois" ); ?> > Illinois
<option  value="Indiana"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "Indiana" ); ?> > Indiana
<option  value="Iowa"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "Iowa" ); ?> > Iowa
<option  value="Kansas"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "Kansas" ); ?> > Kansas
<option  value="Kentucky"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "Kentucky" ); ?> > Kentucky
<option  value="Louisiana"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "Louisiana" ); ?> > Louisiana
<option  value="Maine"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "Maine" ); ?> > Maine
<option  value="Maryland"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "Maryland" ); ?> > Maryland
<option  value="Massachusetts"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "Massachusetts" ); ?> > Massachusetts
<option  value="Michigan"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "Michigan" ); ?> > Michigan
<option  value="Minnesota"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "Minnesota" ); ?> > Minnesota
<option  value="Mississippi"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "Mississippi" ); ?> > Mississippi
<option  value="Missouri"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "Missouri" ); ?> > Missouri
<option  value="Montana"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "Montana" ); ?> > Montana
<option  value="Nebraska"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "Nebraska" ); ?> > Nebraska
<option  value="Nevada"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "Nevada" ); ?> > Nevada
<option  value="New Hampshire"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "New Hampshire" ); ?> > New Hampshire
<option  value="New Jersey"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "New Jersey" ); ?> > New Jersey
<option  value="New Mexico"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "New Mexico" ); ?> > New Mexico
<option  value="New York"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "New York" ); ?> > New York
<option  value="North Carolina"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "North Carolina" ); ?> > North Carolina
<option  value="North Dakota"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "North Dakota" ); ?> > North Dakota
<option  value="Ohio"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "Ohio" ); ?> > Ohio
<option  value="Oklahoma"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "Oklahoma" ); ?> > Oklahoma
<option  value="Oregon"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "Oregon" ); ?> > Oregon
<option  value="Pennsylvania"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "Pennsylvania" ); ?> > Pennsylvania
<option  value="Rhode Island"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "Rhode Island" ); ?> > Rhode Island
<option  value="South Carolina"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "South Carolina" ); ?> > South Carolina
<option  value="South Dakota"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "South Dakota" ); ?> > South Dakota
<option  value="Tennessee"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "Tennessee" ); ?> > Tennessee
<option  value="Texas"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "Texas" ); ?> > Texas
<option  value="Utah"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "Utah" ); ?> > Utah
<option  value="Vermont"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "Vermont" ); ?> > Vermont
<option  value="Virginia"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "Virginia" ); ?> > Virginia
<option  value="Washington"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "Washington" ); ?> > Washington
<option  value="West Virginia"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "West Virginia" ); ?> > West Virginia
<option  value="Wisconsin"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "Wisconsin" ); ?> > Wisconsin
<option  value="Wyoming"  <?php  formSelected( $HTTP_POST_VARS[ "State" ], "Wyoming" ); ?> > Wyoming
</select>

	</td>
</tr>

<tr>
	<td class="form_field" valign='top' align='right'>Zip </td><td width='10'  aligh='right' valign='top'></td>
	<td class="form_text">
<input type="text" name="Zip"  value="<?php  print HtmlSpecialChars( $HTTP_POST_VARS[ "Zip" ] ); ?>" class='text_box'>
	</td>
</tr>

<tr>
	<td class="form_field" valign='top' align='right'>Country </td><td width='10'  aligh='right' valign='top'></td>
	<td class="form_text">
<input type="text" name="Country"  value="<?php  print HtmlSpecialChars( $HTTP_POST_VARS[ "Country" ] ); ?>" class='text_box'>
	</td>
</tr>

<tr>
	<td class="form_field" valign='top' align='right'>Phone </td><td width='10'  aligh='right' valign='top'></td>
	<td class="form_text">
<input type="text" name="Phone"  value="<?php  print HtmlSpecialChars( $HTTP_POST_VARS[ "Phone" ] ); ?>" class='text_box'>
	</td>
</tr>

<tr>
	<td class="form_field" valign='top' align='right'>Fax </td><td width='10'  aligh='right' valign='top'></td>
	<td class="form_text">
<input type="text" name="Fax"  value="<?php  print HtmlSpecialChars( $HTTP_POST_VARS[ "Fax" ] ); ?>" class='text_box'>
	</td>
</tr>

<tr>
	<td class="form_field" valign='top' align='right'>Email </td><td width='10'  aligh='right' valign='top'></td>
	<td class="form_text">
<input type="email" name="Email"  value="<?php  print HtmlSpecialChars( $HTTP_POST_VARS[ "Email" ] ); ?>" class='text_box'>
	</td>
</tr>

<tr>
	<td class="form_field" valign='top' align='right'>Type II (Conventional Anodize) </td><td width='10'  aligh='right' valign='top'></td>
	<td class="form_text">
<input type="checkbox" name="Checkbox01_Type_II_(Conventional_Anodize)"  value=""  <?php  formChecked( $HTTP_POST_VARS[ "Checkbox01_Type_II_(Conventional_Anodize)" ], "" ); ?> > <br>

	</td>
</tr>

<tr>
	<td class="form_field" valign='top' align='right'>Type III (Hard Coat Anodize) </td><td width='10'  aligh='right' valign='top'></td>
	<td class="form_text">
<input type="checkbox" name="Checkbox01_Type_III_(Hard_Coat_Anodize)"  value=""  <?php  formChecked( $HTTP_POST_VARS[ "Checkbox01_Type_III_(Hard_Coat_Anodize)" ], "" ); ?> > <br>

	</td>
</tr>

<tr>
	<td class="form_field" valign='top' align='right'>(Burnish, Deburr) </td><td width='10'  aligh='right' valign='top'></td>
	<td class="form_text">
<input type="checkbox" name="Checkbox01_(Burnish_Deburr)"  value=""  <?php  formChecked( $HTTP_POST_VARS[ "Checkbox01_(Burnish_Deburr)" ], "" ); ?> > <br>

	</td>
</tr>

<tr>
	<td class="form_field" valign='top' align='right'>Conversion (standard) </td><td width='10'  aligh='right' valign='top'></td>
	<td class="form_text">
<input type="checkbox" name="Checkbox01_Conversion_(standard)"  value=""  <?php  formChecked( $HTTP_POST_VARS[ "Checkbox01_Conversion_(standard)" ], "" ); ?> > <br>

	</td>
</tr>

<tr>
	<td class="form_field" valign='top' align='right'>Conversion Hex –free ROHS Compliant) </td><td width='10'  aligh='right' valign='top'></td>
	<td class="form_text">
<input type="checkbox" name="Checkbox01_Conversion_Hex_–free_ROHS_Compliant)"  value=""  <?php  formChecked( $HTTP_POST_VARS[ "Checkbox01_Conversion_Hex_–free_ROHS_Compliant)" ], "" ); ?> > <br>

	</td>
</tr>

<tr>
	<td class="form_field" valign='top' align='right'>Impregnation </td><td width='10'  aligh='right' valign='top'></td>
	<td class="form_text">
<input type="checkbox" name="Checkbox01_Impregnation"  value=""  <?php  formChecked( $HTTP_POST_VARS[ "Checkbox01_Impregnation" ], "" ); ?> > <br>

	</td>
</tr>

<tr>
	<td class="form_field" valign='top' align='right'>Strip </td><td width='10'  aligh='right' valign='top'></td>
	<td class="form_text">
<input type="checkbox" name="Checkbox01_Strip"  value=""  <?php  formChecked( $HTTP_POST_VARS[ "Checkbox01_Strip" ], "" ); ?> > <br>

	</td>
</tr>

<tr>
	<td class="form_field" valign='top' align='right'>Part Number (if available)  </td><td width='10'  aligh='right' valign='top'></td>
	<td class="form_text">
<input type="text" name="Part_Number_(if_available)"  value="<?php  print HtmlSpecialChars( $HTTP_POST_VARS[ "Part_Number_(if_available)" ] ); ?>" class='text_box'>
	</td>
</tr>

<tr>
	<td class="form_field" valign='top' align='right'>Part Description (part name or basic size) </td><td width='10'  aligh='right' valign='top'></td>
	<td class="form_text">
<input type="text" name="Part_Description_(part_name_or_basic_size)"  value="<?php  print HtmlSpecialChars( $HTTP_POST_VARS[ "Part_Description_(part_name_or_basic_size)" ] ); ?>" class='text_box'>
	</td>
</tr>

<tr>
	<td class="form_field" valign='top' align='right'>Alloy (if available) </td><td width='10'  aligh='right' valign='top'></td>
	<td class="form_text">
<input type="text" name="Alloy_(if_available)"  value="<?php  print HtmlSpecialChars( $HTTP_POST_VARS[ "Alloy_(if_available)" ] ); ?>" class='text_box'>
	</td>
</tr>

<tr>
	<td class="form_field" valign='top' align='right'>Quantity </td><td width='10'  aligh='right' valign='top'></td>
	<td class="form_text">
<input type="text" name="Quantity"  value="<?php  print HtmlSpecialChars( $HTTP_POST_VARS[ "Quantity" ] ); ?>" class='text_box'>
	</td>
</tr>

<tr>
	<td class="form_field" valign='top' align='right'>Specifications (optional) </td><td width='10'  aligh='right' valign='top'></td>
	<td class="form_text">
<input type="text" name="Specifications_(optional)"  value="<?php  print HtmlSpecialChars( $HTTP_POST_VARS[ "Specifications_(optional)" ] ); ?>" class='text_box'>
	</td>
</tr>

<tr>
	<td class="form_field" valign='top' align='right'>Color </td><td width='10'  aligh='right' valign='top'></td>
	<td class="form_text">
<input type="text" name="Color"  value="<?php  print HtmlSpecialChars( $HTTP_POST_VARS[ "Color" ] ); ?>" class='text_box'>
	</td>
</tr>

<tr>
	<td class="form_field" valign='top' align='right'>Notes / Special Requests  </td><td width='10'  aligh='right' valign='top'></td>
	<td class="form_text">
<textarea name="Notes_Special_Requests" rows=4 cols=25 ><?php  print HtmlSpecialChars( $HTTP_POST_VARS[ "Notes_Special_Requests" ] ); ?></textarea>

	</td>
</tr>

<tr>
	<td class="form_field" valign='top' align='right'>I am a repeat customer </td><td width='10'  aligh='right' valign='top'></td>
	<td class="form_text">
<input type="checkbox" name="Checkbox01_I_am_a_repeat_customer"  value=""  <?php  formChecked( $HTTP_POST_VARS[ "Checkbox01_I_am_a_repeat_customer" ], "" ); ?> > <br>

	</td>
</tr>

<tr>
	<td class="form_field" valign='top' align='right'>Internet Search </td><td width='10'  aligh='right' valign='top'></td>
	<td class="form_text">
<input type="checkbox" name="Checkbox01_Internet_Search"  value=""  <?php  formChecked( $HTTP_POST_VARS[ "Checkbox01_Internet_Search" ], "" ); ?> > <br>

	</td>
</tr>

<tr>
	<td class="form_field" valign='top' align='right'>Internet Directory </td><td width='10'  aligh='right' valign='top'></td>
	<td class="form_text">
<input type="text" name="Internet_Directory"  value="<?php  print HtmlSpecialChars( $HTTP_POST_VARS[ "Internet_Directory" ] ); ?>" class='text_box'>
	</td>
</tr>

<tr>
	<td class="form_field" valign='top' align='right'>Referral </td><td width='10'  aligh='right' valign='top'></td>
	<td class="form_text">
<input type="text" name="Referral"  value="<?php  print HtmlSpecialChars( $HTTP_POST_VARS[ "Referral" ] ); ?>" class='text_box'>
	</td>
</tr>

<tr>
	<td class="form_field" valign='top' align='right'>Yellow Pages </td><td width='10'  aligh='right' valign='top'></td>
	<td class="form_text">
<input type="checkbox" name="Checkbox01_Yellow_Pages"  value=""  <?php  formChecked( $HTTP_POST_VARS[ "Checkbox01_Yellow_Pages" ], "" ); ?> > <br>

	</td>
</tr>

<tr>
	<td class="form_field" valign='top' align='right'>Trade Show </td><td width='10'  aligh='right' valign='top'></td>
	<td class="form_text">
<input type="text" name="Trade_Show"  value="<?php  print HtmlSpecialChars( $HTTP_POST_VARS[ "Trade_Show" ] ); ?>" class='text_box'>
	</td>
</tr>

<tr>
	<td class="form_field" valign='top' align='right'>Other </td><td width='10'  aligh='right' valign='top'></td>
	<td class="form_text">
<input type="text" name="Other"  value="<?php  print HtmlSpecialChars( $HTTP_POST_VARS[ "Other" ] ); ?>" class='text_box'>
	</td>
</tr>

<tr>
	<td class="form_field" valign='top' align='right'>Upload File </td><td width='10'  aligh='right' valign='top'></td>
	<td class="form_text">
<input type="file" name="Upload_File"  value="" class='text_box'>
	</td>
</tr>

<tr>
	<td class="form_field" valign='top' align='right'>Upload File </td><td width='10'  aligh='right' valign='top'></td>
	<td class="form_text">
<input type="file" name="Upload_File"  value="" class='text_box'>
	</td>
</tr>

<tr>
	<td class="form_field" valign='top' align='right'>Upload File </td><td width='10'  aligh='right' valign='top'></td>
	<td class="form_text">
<input type="file" name="Upload_File"  value="" class='text_box'>
	</td>
</tr>

<tr>
	<td class="form_field" valign='top' align='right'>Upload File </td><td width='10'  aligh='right' valign='top'></td>
	<td class="form_text">
<input type="file" name="Upload_File"  value="" class='text_box'>
	</td>
</tr>


<tr><td colspan=3 align='center'><input type='submit' value='Submit'>    <input type='button' value='Cancel' onClick="location.href='/';"></td></tr>
</table>


</form>




<!-- End: -->



<?php
	if( $sErr ) print "<script language='javascript' type='text/javascript'>location.href='#error';</script>";;; 

else: //!$isHideForm
print( "<br><br><hr><center><b>Your form has been sent. Thank you.</b><br><br><input type='button' value='Home' onclick=\"location.href='/';\"></center><br><br>" );
endif; //!$isHideForm
		?>

<!-- footer -->
<br /><br />

<p> </p>
</center>


<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-2637029-29";
urchinTracker();
</script>

</body>
</html>

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.