Jump to content

Upload System


Brigog

Recommended Posts

If anyone could please help me with this I would be much appreciated. Basically, I need a file upload system for our companies site. I need it so that when a customer fills out this form they can upload some files through this form and they will be transfered to a folder on our server located in /public_html/jobs/uploads. My problem is im trying to do way more then I know. So if anyone could perhaps complete the holes in my script or tell me how to I would be very greatfull. Also, I would like the script to include in the e-mail it sends us the name of the files they uploaded.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>	<title>Southgate Design</title>	<link rel="stylesheet" href="style.css" type="text/css" charset="utf-8" /></head><body>	<div id="wrapper">		<div id="header">			<h1><img src="images/logo.jpg" width="172" height="45" alt="Charity Trust"></h1>			<div id="nav">				<a href="index.html"><img src="images/a1.jpg" width="66" height="41" alt="Home"></a>				<a href="about.html"><img src="images/m2.jpg" width="87" height="41" alt="About Us"></a>				<a href="prices.html"><img src="images/m3.jpg" width="83" height="41" alt="Prices"></a>				<a href="shipping.html"><img src="images/m4.jpg" width="72" height="41" alt="Shipping"></a>				<a href="#"><img src="images/m5.jpg" width="84" height="41" alt="M5"></a>				<a href="#"><img src="images/o6.jpg" width="64" height="41" alt="M6"></a>				<a href="community.html"><img src="images/m7.jpg" width="89" height="41" alt="Community"></a><a href="mailto:info@southgatedesign.com?subject=Requesting to become a SG Broker"><img src="images/m8.jpg" width="89" height="41" alt="M8"></a>			 </div>			 	  </div>		<div id="headline">						</div>			<div class="clear"></div>		</div>		<div id="body">		  		  <div id="body-left3">				<table width="600" border="0" cellpadding="1">  <tr>	<td><script src="http://www.jotform.com/js/form.js?v2.0.502" type="text/javascript"></script><style type="text/css">html,body{height:100%; margin:0;}.tbmain{  /* Changes on the form */ background: white !important; }.left{  /* Changes on the form */  color: black !important;   font-family: Verdana !important;  font-size: 12px !important;}td.left {   font-family: "Trebuchet MS";   font-size: 11px;   font-weight:bold;   color:#ff5200;   vertical-align: top;   text-align: left;}.pagebreak{   font-family: "Trebuchet MS";   font-size: 11px;   font-weight:bold;   color:black;}td.right {   font-family: "Trebuchet MS";   font-size: 11px;   font-weight:normal;   color:#333333;   vertical-align: top;      text-align: left;   }.tbmain{   height:100%;   color:#333333;   background:url(http://www.jotform.com/images/styles/style1_bg.gif) #ffffff top repeat-x;}.head{   font-family: "Trebuchet MS";   font-size: large;   font-weight: bold;   color:#ff5200;   vertical-align: top;   text-align: left;}.notvalid{   border:2px red solid;   font-family:"Trebuchet MS";}.text{   font-family: "Trebuchet MS";   font-size: 11px;   font-weight:normal;   color:#333333;   border:1px #cccccc solid;   background:url(http://www.jotform.com/images/styles/style1_txt_bg.gif) #f6f6f6 top repeat-x;}select.other{   font-family: "Trebuchet MS";   font-size: 11px;   font-weight:normal;   color:#333333;   border:1px #cccccc solid;   background:url(http://www.jotform.com/images/styles/style1_txt_bg.gif) #f6f6f6 top repeat-x;}.btn{   font-family: "Trebuchet MS";   font-size: 11px;   font-weight:normal;   color:#333333;   border:1px #c6c7ca solid;   background: url(http://www.jotform.com/images/styles/style1_btn_bg.gif) #e4e4e4 top repeat-x;}span.required{  font-size: 13px !important;  color: red !important;}</style> </head><body><table width="100%" cellpadding="2" cellspacing="0" class="tbmain"><tr><td class="topleft" width="10" height="10"> </td><td class="topmid"> </td><td class="topright" width="10" height="10"> </td>  </tr><tr><td class="midleft" width="10">   </td><td class="midmid" valign="top"><form enctype="multipart/form-data"  action="http://www.jotform.com/submit.php"  method="post" name="q_form_73511057447"><input type="hidden" name="formID" value="73511057447" /><div id="main"> <table width="520" cellpadding="5" cellspacing="0"> <tr >  <td width="150" class="left" >   <label >Job Name</label>  </td>  <td class="right" >   <input type="text" size="20" name="q2_JobName" class="text" value="" id="q2"  />  </td> </tr> <tr >  <td width="150" class="left"  valign="top" >   <label>Size</label>  </td>  <td class="right">   <select class="other" name="q13_Size" id="q13" >  <option></option>	<option>Business Cards</option>	<option>1/8 pg. Flyers</option>	<option>4x6 Postcards</option>	<option>5"x7" Postcards</option>	<option>4"x9" Rackcards</option>	<option>1/2 pg. Flyers</option>	<option>Full pg. Flyers</option>	<option>Door Hangers</option>	<option>Presentation Folders</option>	<option>Catalog Sheets 4/0</option>	<option>Catalog Sheets 4/4</option>	<option>Brochures 8.5x11</option>	<option>Brochures 11x17</option>   </select>  </td> </tr> <tr >  <td width="150" class="left"  valign="top" >   <label>Quantity</label>  </td>  <td class="right">   <select class="other" name="q15_Quantity" id="q15" >  <option></option>	<option>1,000</option>	<option>5,000</option>	<option>10,000</option>	<option>15,000</option>	<option>20,000</option>   </select>  </td> </tr> <tr >  <td width="150" class="left"  valign="top" >   <label>Stock</label>  </td>  <td class="right">   <select class="other" name="q21_Stock" id="q21" >  <option></option>	<option>100lb Text</option>	<option>12pt C2S</option>	<option>Other</option>   </select>  </td> </tr> <tr >  <td width="150" class="left"  valign="top" >   <label>Ink</label>  </td>  <td class="right">   <select class="other" name="q22_Ink" id="q22" >  <option></option>	<option>4/0</option>	<option>4/4</option>	<option>Other</option>   </select>  </td> </tr> <tr >  <td width="150" class="left"  valign="top" >   <label>UV Coated</label>  </td>  <td class="right">   <select class="other" name="q23_UVCoated" id="q23" >  <option></option>	<option>Option 1</option>	<option>Option 2</option>	<option>Option 3</option>   </select>  </td> </tr> <tr >  <td width="150" class="left"  valign="top" >   <label>Bindery</label>  </td>  <td class="right">   <select class="other" name="q24_Bindery" id="q24" >  <option></option>	<option>Fold</option>	<option>Saddle Stitch</option>	<option>Score</option>	<option>Score & Fold</option>	<option>Perf</option>	<option>Drill</option>	<option>Numbering</option>   </select>  </td> </tr> <tr >  <td width="150" class="left"  valign="top" >   <label>Padded</label>  </td>  <td class="right">   <select class="other" name="q25_Padded" id="q25" >  <option></option>	<option>Die Cut</option>	<option>Other</option>   </select>  </td> </tr> <tr >  <td width="150" class="left" >   <label >Price</label>  </td>  <td class="right" >   <input type="text" size="5" name="q3_Price" class="text" value="" id="q3"  />  </td> </tr> <tr >  <td width="150" class="left" >   <label>Due Date</label>  </td>  <td class="right">   <script type="text/javascript" src="http://www.jotform.com/js/datetimepicker.js?v2.0.502"></script>  <input type="text" class="text" size="10" name="q17_DueDate" id="q17"  />    <a href="java script:NewCal('q17','mmddyyyy',false,12)">	<img src="http://www.jotform.com/images/cal.gif"border="0" alt="Pick a date" /></a>  </td> </tr> <tr >  <td width="150" class="left"  valign="top" >   <label>Rush Job</label>  </td>  <td class="right">   <select class="other" name="q26_RushJob" id="q26" >  <option></option>	<option>Yes</option>	<option>No</option>   </select>  </td> </tr> <tr >  <td width="150" class="left" valign="top"  >   <label>Special Instructions</label>  </td>  <td class="right" >   <textarea cols="30" rows="5" name="q10_SpecialInstructions" class="text" id="q10" ></textarea>  </td> </tr> <tr >  <td width="150" class="left" >	 <label>Front or Outside</label>  </td>  <td class="right">	 <input type="file" class="text" size="20" name="q19_FrontorOutside" id="q19"   />  </td> </tr> <tr >  <td width="150" class="left" >	 <label>Back or Inside</label>  </td>  <td class="right">	 <input type="file" class="text" size="20" name="q20_BackorInside" id="q20"   />  </td> </tr> <tr >  <td width="150" class="left" >      </td>  <td class="right">  <input type="submit" class="btn" name="q1_" value="Submit" /> </td> </tr></table></div></form></td><td class="midright" width="10">   </td></tr><tr> <td class="bottomleft" width="10" height="10"> </td> <td class="bottommid"> </td> <td class="bottomright" width="10" height="10"> </td></tr></table><script type="text/javascript">validate("q_form_73511057447");</script></td>  </tr></table>		  </div>		  <div class="clear"></div>	  </div>	</div>	<div id="footer">		<p>© 2007 all rights reserved.</p>	</div></body></html>

Link to comment
Share on other sites

It looks like you're using some sort of third-party form processing. Unless they allow file uploads (which I doubt, because you would be uploading the file to their server, not yours), you will need to build your own PHP script to process the form. You might want to take a look at these first:http://www.w3schools.com/php/php_forms.asphttp://w3schools.invisionzone.com/index.php?showtopic=12509http://www.php.net/manual/en/features.file-upload.php

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...