Jump to content

copy from back to sender


dayle

Recommended Posts

hello PHP geniuses! I am new to this whole thing... so please be patient with me :)

I have a form that is working great.... there are just a couple of things that I would like it to do that I can't figure out. PHP is still a mystery to me, but I am trying to learn. If I include the code, I am hoping someone can help.

I would like to know if I can

1. cc the sender the form details

2. pull form data to create the subject line

 

This is a HiQform, with attachments...

 

My HTML:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Studio Job Ticket</title>
<link rel="stylesheet" type="text/css" href="view.css" media="all">
<script type="text/javascript" src="view.js"></script>
<script type="text/javascript" src="calendar.js"></script>

</head>
<body id="main_body" > 

<img id="top" src="top.png" alt="">
<div id="form_container">

  <h1><a>Studio Job Ticket</a></h1>
  <form id="studio job ticket" class="appnitro" enctype="multipart/form-data" method="post" action="HiQFM.php">
	<div class="form_description">
        <input type=hidden name="recipient" value="dayle_sheward@rogers.com,dayle.sheward@juniperpark.com">
        <input type="hidden" name="redirect" value="http://dayle.me/form/thankyou.html">
        <input type="hidden" name="form_format" value="html">
        <input type="hidden" name="MAX_FILE_SIZE" value="1000000">
        <input type="hidden" name="path_to_file" value="http://dayle.me/form/TEMP_FILES">
        <input type="hidden" name="subject" value="Studio Job Ticket">
        <input type=hidden name="style_sheet" value="view.css">
        
	<br />
          <h2>Studio Job Ticket</h2>
		<p>The purpose of this form is to ensure the Juniper Park Studio receives all 
		  necessary 
		  files and information needed for dockets to be done in timely and 
		  accurate fashion. 
		  Please provide as <br />
		  much information 
		  as possible.</p>
		<p>Once this job ticket is received, you will be contacted by phone or email, confirming 
	    your job is <br />
	    in progress, with a rough estimate on when you can expect the first proof. </p>
        </div>						
    <ul >
	<li class="description" id="li_1" >
  	  <label class="description" for="account manager">Account Manager</label>
	  <span>
	  <input id="first name" name= "first name" class="element text" maxlength="255" size="10" value=""/>
	  <label>First</label>
      </span> <span>
	  <input id="last name" name= "last name" class="element text" maxlength="255" size="14" value=""/>
	  <label>Last</label>
	   </span> </li>
	<li id="li_2" >
  	  	<label class="description" for="email">Email</label>
  	  	<div>
	  <input id="email" name="email" class="element text" type="text" maxlength="255" value=""/>
      </div>
	  </li>
	<li id="li_3" >
	 	<label class="description" for="job">Job</label>
	  <span>
	  	<input id="client" name= "client" class="element text" maxlength="255" size="8" value=""/>
	 	<label>Client</label>
      </span> <span>
	    <input id="brand" name= "brand" class="element text" maxlength="255" size="14" value=""/>
	    <label>Brand</label>
	      </span> </li>
	<li id="li_4" >
	  <label class="description" for="media type">Media Type</label>
	  <div>
	    <select class="element select medium" id="media type" name="media type">
	      <option value=""selected="selected"></option>
	      <option value="Award Work" >Awards Work</option>
	      <option value="Collateral" >Collateral</option>
	      <option value="OOH" >OOH</option>
              <option value="Print" >Print</option>
	      <option value="Retouching" >Retouching</option>
              <option value="Photography" >Photography</option>
        </select>
      </div>
	  </li>
	<li id="li_5" >
          <label class="description" for="docket">Docket (work cannot start without this)</label>
          <div>
          <input id="docket" name="docket" class="element text" type="text" maxlength="255" value=""/>
          </div>
        </li>
	<li id="li_6" >
	  <label class="description" for="job">Creative Team</label>
	  <span>
	    <input id="AD" name= "AD" class="element text" maxlength="255" size="14" value=""/>
	    <label>AD</label>
      </span> <span>
	      <input id="Writer" name= "Writer" class="element text" maxlength="255" size="14" value=""/>
	      <label>Writer</label>
	      </span></li>
	<li id="li_7" >
	<label class="description" for="Supplied">Additional Information to Supply</label>
	<span>
	<input id="copy deck" name="copy deck" class="element checkbox" type="checkbox" value="1" />
	<label class="choice" for="element_6_1">Copy Deck</label>
	<input id="spec sheet" name="spec sheet" class="element checkbox" type="checkbox" value="1" />
	<label class="choice" for="element_6_2">Spec Sheet</label>
	<input id="ma" name="ma" class="element checkbox" type="checkbox" value="1" />
	<label class="choice" for="element_6_3">MA</label>
        <input id="creative files" name="creative files" class="element checkbox" type="checkbox" value="1" />
	<label class="choice" for="element_6_3">Creative Files</label> 
	  Please specify location files:</span></li>
	<li >
	  <div>
        <input id="creative file location" name="creative file location" class="element text" type="text" maxlength="255" value=""/> 
        or<br />
        <input id="emailedYN" name="emailedYN" class="element checkbox" type="checkbox" value="1" />
        <label class="choice" for="emailedYN">Check if to be Emailed</label> 
          </div> 
          	</li>		<li id="li_7" >
	<label class="description" for="upload">Upload a File </label>
	<div>
	  <input id="attachment" name="attachment[]" class="element file" type="file"/>
	</div> 
     		</li>		<li id="li_3" >
	<label class="description" for="due date">Due Date </label>
	<span>
		<input id="element_3_1" name="MM" class="element text" size="2" maxlength="2" value="" type="text"> /
		<label for="element_3_1">MM</label>
	</span>
	<span>
		<input id="element_3_2" name="DD" class="element text" size="2" maxlength="2" value="" type="text"> /
		<label for="element_3_2">DD</label>
	</span>
	<span>
 		<input id="element_3_3" name="YYYY" class="element text" size="4" maxlength="4" value="" type="text">
		<label for="element_3_3">YYYY</label>
	</span>

	<span id="calendar_3">
		<img id="cal_img_3" class="datepicker" src="calendar.gif" alt="Pick a date.">	
	</span>
	<script type="text/javascript">
		Calendar.setup({
		inputField	 : "element_3_3",
		baseField    : "element_3",
		displayArea  : "calendar_3",
		button		 : "cal_img_3",
		ifFormat	 : "%B %e, %Y",
		onSelect	 : selectDate
		});
	</script>
<li id="li_10" >
	<label class="description" for="element_10">Production Details</label>

	<div class="left">
		<input id="trim" name="trim" class="element text" value="" type="text">
		<label for="trim">Trim Size (width x height)</label>
	</div>

	<div class="right">
		<input id="live" name="live" class="element text" value="" type="text">
		<label for="live">Live (width x height)</label>
	</div>

	<div class="left">
		<input id="bleed" name="bleed" class="element text" value="" type="text">
		<label for="bleed">Bleed (width x height)</label>
	</div>

	<div class="right">
		<input id="#mechanicals" name="#mechanicals" class="element text" value="" type="text">
		<label for="#mechanicals"># of Mechanicals 
	    (if multiple, please provide a MA or spreadsheet)</label>
	</div>
        		<div class="left">
		<input id="die line" name="die line" class="element text" value="" type="text">
		<label for="die line">Die Line</label>
	</div>

	<div class="right">
		<input id="PU docket" name="PU docket" class="element text" value="" type="text">
		<label for="PU docket">Pick-Up docket</label>
	</div>
        

	<div class="left">
		<input id="FilesReq" name="FilesReq" class="element text" maxlength="15" value="" type="text">
		<label for="FilesReq">To supply raw collected files or PDFX1a</label>
	</div>

	<div class="right">
		<select class="element select medium" id="delivery" name="delivery" onClick='alert("Please provide all deliverable details, such as FTP/emails etc.; info in the ADDITIONAL INFO area below.")'>
		<option value="" selected="selected"></option>
<option value="File Cargo" >File Cargo</option>
<option value="FTP" >FTP</option>
<option value="Email" >Email</option>
<option value="Temp Folder" >Temp Folder</option>
<option value="Disk" >Disk</option>


		</select>
	<label for="deliverable info">Deliverable Info</label>
</div> 
	</li>
	</li>
	<li id="li_13" >
	  <label class="description" for="Additional">Additional Info</label>
	  <div>
	    <textarea id="Additional" name="Additional" class="element textarea medium"></textarea>
      </div>
	  </li>
    </ul>
		<p>
		<label for="userCopyMe">Check the box if you wish to be sent a copy of this message</label>
				<br />
		<input type="checkbox" name="userCopyMe" id="userCopyMe" value="1" <?php if ($userCopyMe == "1") { echo "checked=\"checked\""; }?> />
		</p>
	    <li class="buttons" id="saveForm">
              <input type="reset" value="Reset" >
	      <input id="saveForm" class="button_text" type="submit" name="submit" value="Submit" onclick="verify();">
	    </li>
    </ul>
  </form>	
	<div id="footer"></div>
</div>
<img id="bottom" src="bottom.png" alt="">
</body>
    <name="form_delivery" value="digest"/> 
</form>
</html>

Thanks in advance!

 

EDIT: pinche code tags.

 

[attachment deleted by admin]

Link to comment
Share on other sites

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.