Jump to content

Forms


sarahj512

Recommended Posts

At my work, we have a 'Request a Quote' page in our website, and my boss told me the man before me had managed to get his code so all the Request forms would be e-mailed to him in the same format as they were on the website, not the usual way that forms send to email, like what's posted below."Firstname=JohnLastname=SmithEmail=john.smith@company.com"Does anyone know how to do this code, or know how to get a form that has been submitted to send to an e-mail to show up in the e-mail the exact same as it shows up on the website? My boss says it is like he gets the page e-mailed to him, but he knows all they did was submit the request.Thanks in advance!!! Sorry if this is a CSS or Java question...SarahA Team Apparel

Link to comment
Share on other sites

Don't you have the old form at hand, so that you can see how it's working?I suppose what he meant was that he is receiving an HTML email, that happens to use the styles and HTML as in the page.

Link to comment
Share on other sites

  • 2 weeks later...

The old code was so messy and most of it was incorrect as is that I couldn't find anything that resembled how it was working. I had my HTML teacher helping me trying to find this code, and even she couldn't find it.

Don't you have the old form at hand, so that you can see how it's working?I suppose what he meant was that he is receiving an HTML email, that happens to use the styles and HTML as in the page.
Link to comment
Share on other sites

I don't know how to format the e-mail script, if it requires using anything other than HTML.
probably not. There's a whole thread going on in the General sub forum about sending HTML email. you should check it out.http://w3schools.invisionzone.com/index.php?showtopic=32287
Link to comment
Share on other sites

At my work, we have a 'Request a Quote' page in our website, and my boss told me the man before me had managed to get his code so all the Request forms would be e-mailed to him in the same format as they were on the website, not the usual way that forms send to email, like what's posted below."Firstname=JohnLastname=SmithEmail=john.smith@company.com"Does anyone know how to do this code, or know how to get a form that has been submitted to send to an e-mail to show up in the e-mail the exact same as it shows up on the website? My boss says it is like he gets the page e-mailed to him, but he knows all they did was submit the request.Thanks in advance!!! Sorry if this is a CSS or Java question...SarahA Team Apparel
What scripting language are you most comfortable with / do you know which are supported on your work's ftp server? For some, you simply create an email object and fill in the blanks. The script shouldn't have been complicated enough to over-complicate and make a mess of it like this past guy seems to have done.
Link to comment
Share on other sites

well, if it's using a server side language to send the mail (which I suspect it is), then there's not much you can do if you only know HTML, however, that link should get you up and running with constructing a simple email using PHP's mail function. Constructing headers, body (with HTML formatting), etc.

Link to comment
Share on other sites

well, if it's using a server side language to send the mail (which I suspect it is), then there's not much you can do if you only know HTML, however, that link should get you up and running with constructing a simple email using PHP's mail function. Constructing headers, body (with HTML formatting), etc.
I have responded to all the PHP I've seen the way people look at me when I type simple HTML. I think my boss will just have to wait, because our old guy didn't have any PHP files, and yet he could send HTML e-mails. Yet I don't know how to do this. Oh well.
Link to comment
Share on other sites

no one has his contact info, or previous copies of his work? Even if its old and messy, we might have better luck trying to make sense of it.

Link to comment
Share on other sites

  • 2 weeks later...
no one has his contact info, or previous copies of his work? Even if its old and messy, we might have better luck trying to make sense of it.
I might be able to find a previous copy of his request form, and upload it here, to see if anyone can make sense of it. From what I get out of reading it, and I don't get a whole lot, it's just a bunch of mess, and there isn't much helpful. Would that be okay?
Link to comment
Share on other sites

Okay, I don't know the best way to do this, but sorry that the form is so long... Here is what the previous guy used.

<html><style>a:link { color:inherit; text-decoration: none;}a:visited { color:inherit; text-decoration: none;}a:hover { color:#141c38; text-decoration: none;}a:active { color:inherit; text-decoration: none;}</style><head><title>A Team Apparel. The little place near Prairie City.</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">		<!-- ImageReady Preload Script (MENU.psd) --><!-- End Preload Script -->		<csactions>			<csaction name="c491518032" class="Open Window" type="onevent" val0="../T-Shirt%20Catalog/T-Shirt%20Catalog.html" val1="" val2="900" val3="800" val4="true" val5="true" val6="false" val7="false" val8="false" val9="false" val10="false" urlparams="1"></csaction>			<csaction name="c492a95a1" class="Open Window" type="onevent" val0="../T-Shirt%20Catalog/T-Shirt%20Catalog.html" val1="" val2="900" val3="800" val4="true" val5="true" val6="false" val7="false" val8="false" val9="false" val10="false" urlparams="1"></csaction>		</csactions>		<csscriptdict import>			<script type="text/javascript" src="../GeneratedItems/CSScriptLib.js"></script>		</csscriptdict>		<csactiondict>			<script type="text/javascript"><!--CSAct[/*CMP*/ 'c491518032'] = new Array(CSOpenWindow,/*URL*/ '../T-Shirt%20Catalog/T-Shirt%20Catalog.html','',900,800,true,true,false,false,false,false,false);CSAct[/*CMP*/ 'c492a95a1'] = new Array(CSOpenWindow,/*URL*/ '../T-Shirt%20Catalog/T-Shirt%20Catalog.html','',900,800,true,true,false,false,false,false,false);// --></script>		</csactiondict>	</head><body background="../LAYOUT/back3-4.gif" text="#505050" link="#63697b" vlink="#62697a" alink="#141c38" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">		<div align="center">			<br>			<img src="../LAYOUT/Menu2_01.jpg" alt="" width="800" height="71" border="0">			<table width="800" border="0" cellspacing="0" cellpadding="0" bgcolor="#2477ab" height="15">				<tr>					<td></td>				</tr>			</table>			<table width="800" border="0" cellspacing="0" cellpadding="0" align="center" background="../Store/3.jpg">				<tr height="20">					<td align="left" valign="bottom" bgcolor="#bbbdc3" width="188" height="20"></td>					<td align="left" valign="middle" bgcolor="white" width="100%" height="20"><font size="-2" color="white" face="Verdana, Arial, Helvetica, sans-serif"><a href="../Sports%20Uniforms/Sports-Uniforms.html">_</a></font><font size="-2" color="#383838" face="Verdana, Arial, Helvetica, sans-serif"><a href="../Sports%20Uniforms/Sports-Uniforms.html">Home / Request a Quote</a></font></td>				</tr>				<tr>					<td rowspan="3" align="left" valign="top" bgcolor="#bbbdc3" width="188">						<div align="center">							<table width="90%" border="0" cellspacing="0" cellpadding="5" align="center">								<tr>									<td align="left" valign="top" width="30%"><font size="-1" color="white" face="Verdana, Arial, Helvetica, sans-serif"><strong><a href="../index.html">Home</a></strong></font></td>								</tr>								<tr>									<td align="left" valign="top" width="30%"><font size="-1" color="white" face="Verdana, Arial, Helvetica, sans-serif"><strong><a href="../Gallery/Gallery.html">Gallery</a></strong></font></td>								</tr>								<tr>									<td align="left" valign="top" width="30%"><font size="-1" color="white" face="Verdana, Arial, Helvetica, sans-serif"><strong><a href="../Sports%20Uniforms/Sports-Uniforms.html">Sports Uniforms</a></strong></font></td>								</tr>								<tr>									<td align="left" valign="top" width="30%"><font size="-1" color="white" face="Verdana, Arial, Helvetica, sans-serif"><strong><a href="../Spirit%20Gear/Spirit%20Gear.html">Spirit Gear</a></strong></font></td>								</tr>								<tr>									<td align="left" valign="top" width="30%"><font size="-1" color="white" face="Verdana, Arial, Helvetica, sans-serif"><strong><a href="../Signs%20and%20Banners/signs.html">Signs & Banners</a></strong></font></td>								</tr>								<tr>									<td align="left" valign="top" width="30%"><font size="-1" color="white" face="Verdana, Arial, Helvetica, sans-serif"><strong><a href="../news/news.html">Press & Photos</a></strong></font></td>								</tr>								<tr>									<td align="left" valign="top" width="30%"><font size="-1" color="white" face="Verdana, Arial, Helvetica, sans-serif"><strong><a href="Art%20Request.html">Request a Quote</a></strong></font></td>								</tr>							</table>							<br>							<table width="188" border="0" cellspacing="0" cellpadding="0" bgcolor="#bebebe" height="2">								<tr>									<td align="left" valign="top" width="30%"></td>								</tr>							</table>							<a onclick="CSAction(new Array(/*CMP*/'c491518032'));return CSClickReturn()" href="#" csclick="c491518032"><img src="../LAYOUT/shirt%20catalog.jpg" alt="" width="187" height="42" border="0"></a>							<table width="188" border="0" cellspacing="0" cellpadding="0" bgcolor="#bebebe" height="2">								<tr>									<td align="left" valign="top" width="30%"></td>								</tr>							</table>							<a href="../Location/Location.html"><img src="../LAYOUT/location2.jpg" alt="" width="187" height="52" border="0"></a><br>							<table width="188" border="0" cellspacing="0" cellpadding="0" bgcolor="#b4b4b4" height="2">								<tr>									<td align="left" valign="top" width="30%"></td>								</tr>							</table>							<table width="170" border="0" cellspacing="0" cellpadding="5">								<tr>									<td align="left" valign="top" width="30%"><font size="2" color="#565d70" face="Trebuchet MS, Geneva, Arial, Helvetica, SunSans-Regular, sans-serif"><strong>Need Assistance?<br>													515-994-9244<br>											</strong></font><font size="1" color="#565d70" face="Trebuchet MS, Geneva, Arial, Helvetica, SunSans-Regular, sans-serif">8am - 5pm (Mon - Fri)<br>												9am - 1pm (Sat)</font></td>								</tr>							</table>							<table width="188" border="0" cellspacing="0" cellpadding="0" bgcolor="#b4b4b4" height="2">								<tr>									<td align="left" valign="top" width="30%"></td>								</tr>							</table>							<br>							<br>							<a href="Art%20Request.html"><img src="../LAYOUT/LOGO-1.gif" alt="" width="70" height="70" align="bottom" border="0"></a><br>							<br>						</div>					</td>					<td rowspan="3" align="left" valign="top" bgcolor="#f2f2f2" width="100%">						<div align="center">							<form id="Request_Form" action="../cgi-bin/FormMail.pl" method="post" name="Request_Form">								<input type="hidden" name="recipient" value="sales@ateamapparel.com"><input type="hidden" name="redirect" value="http://www.ateamapparel.com/Art%20Request/Art%20Request%20Thank%20you.html"><input type="hidden" name="subject" value="Requesting Quote and illustration">								<table width="100%" border="0" cellspacing="10" cellpadding="0">									<tr>										<td valign="top" width="100%">											<div align="left">												<font size="-2" color="#141c38" face="Verdana, Arial, Helvetica, sans-serif">Get a design and price quote emailed to you in 24 hours.<br>														Just Complete the information. No obligation to purchase.</font></div>										</td>									</tr>									<tr>										<td valign="top" bgcolor="white" width="100%"><img src="shirt.jpg" alt="" width="25" height="25" align="left" border="0">											<table width="530" border="0" cellspacing="10" cellpadding="0" bgcolor="white">												<tr>													<td valign="top" width="40%">														<div align="right">															<font size="-2" color="#141c38" face="Verdana, Arial, Helvetica, sans-serif"><strong>T Shirt</strong></font></div>													</td>													<td valign="top" width="60%"></td>												</tr>												<tr>													<td valign="top" width="40%">														<div align="right">															<font size="-2" color="#505050" face="Verdana, Arial, Helvetica, sans-serif">T-Shirt Color:</font></div>													</td>													<td valign="top" width="60%"><input type="text" name="T-Shirt Color" size="24"><a onclick="CSAction(new Array(/*CMP*/'c492a95a1'));return CSClickReturn()" href="#" csclick="c492a95a1"><img src="../LAYOUT/shirt%20catalog%20small.jpg" alt="" width="141" height="23" border="0"></a></td>												</tr>												<tr>													<td valign="top" width="40%">														<div align="right">															<font size="-2" color="#505050" face="Verdana, Arial, Helvetica, sans-serif">Estimated Quantity of shirts to order:<br>																<br>															</font><font size="-2" color="#2477ab" face="Verdana, Arial, Helvetica, sans-serif">No minimum for <strong><em>text only<br>																	</em></strong></font><font size="-2" color="#505050" face="Verdana, Arial, Helvetica, sans-serif"><br>															</font><font size="-2" color="#2477ab" face="Verdana, Arial, Helvetica, sans-serif">12 pcs minimum for <strong><em>illustrations</em></strong><br>																	price cut at quantity 37 pcs +<br>																	75 pcs +<br>																	150 pcs +</font></div>													</td>													<td valign="top" width="60%"><input type="text" name="Quantity of Shirts" size="3"></td>												</tr>											</table>										</td>									</tr>									<tr>										<td valign="top" bgcolor="white" width="100%"><img src="first.jpg" alt="" width="25" height="25" align="left" border="0">											<table width="530" border="0" cellspacing="10" cellpadding="0" bgcolor="white">												<tr>													<td valign="top" width="40%">														<div align="right">															<font size="-2" color="#141c38" face="Verdana, Arial, Helvetica, sans-serif"><strong>Primary Design</strong></font></div>													</td>													<td valign="top" width="60%"></td>												</tr>												<tr>													<td valign="top" width="40%">														<div align="right">															<font size="-2" color="#505050" face="Verdana, Arial, Helvetica, sans-serif">Location of Design:</font></div>													</td>													<td valign="top" width="60%"><select name="Primary Design Location" size="1">															<option value="Full Front">Full Front</option>															<option value="Left Chest">Left Chest</option>															<option value="Right Chest">Right Chest</option>															<option value="Full Back">Full Back</option>															<option value="Middle Back">Middle Back</option>															<option value="Behind Neck">Behind Neck</option>															<option value="Left Sleeve">Left Sleeve</option>															<option value="Right Sleeve">Right Sleeve</option>														</select></td>												</tr>												<tr>													<td valign="top" width="40%">														<div align="right">															<font size="-2" color="#505050" face="Verdana, Arial, Helvetica, sans-serif">Number of colors to use in Design:</font><font size="-2" color="#2477ab" face="Verdana, Arial, Helvetica, sans-serif"><br>																	Note that the more colors,<br>																	the higher the cost.</font><font size="-2" color="#2477ab" face="Verdana, Arial, Helvetica, sans-serif"><br>															</font></div>													</td>													<td valign="top" width="60%"><input type="text" name="Primary Design Color 1" size="3"></td>												</tr>												<tr>													<td valign="top" width="40%">														<div align="right">															<font size="-2" color="#505050" face="Verdana, Arial, Helvetica, sans-serif">Describe Design to be Printed:</font></div>													</td>													<td valign="top" width="60%"><textarea name="Primary Design Description" rows="6" cols="45">Example: I'd like a dark orange or brown horse jumping over a cactus. The cactus should have a hat and a mean face. Oh and large thorns. I want some text at the top that says "Get 'em Cactus!" in big fat bold lettes in whatever color looks best.</textarea></td>												</tr>											</table>										</td>									</tr>									<tr>										<td valign="top" bgcolor="white" width="100%"><img src="second.jpg" alt="" width="25" height="25" align="left" border="0">											<table width="530" border="0" cellspacing="10" cellpadding="0" bgcolor="white">												<tr>													<td valign="top" width="40%">														<div align="right">															<font size="-2" color="#141c38" face="Verdana, Arial, Helvetica, sans-serif"><strong>Secondary Design</strong></font></div>													</td>													<td valign="top" width="60%"></td>												</tr>												<tr>													<td valign="top" width="40%">														<div align="right">															<font size="-2" color="#505050" face="Verdana, Arial, Helvetica, sans-serif">Location of Design:</font></div>													</td>													<td valign="top" width="60%"><select name="Secondary Design Location" size="1">		   
Link to comment
Share on other sites

Here is the rest, if it's important at all. It will copy and paste right under the other code. Sorry about the length again.

															<option value="None">None</option>															<option value="Full Front">Full Front</option>															<option value="Left Chest">Left Chest</option>															<option value="Right Chest">Right Chest</option>															<option value="Full Back">Full Back</option>															<option value="Middle Back">Middle Back</option>															<option value="Behind Neck">Behind Neck</option>															<option value="Left Sleeve">Left Sleeve</option>															<option value="Right Sleeve">Right Sleeve</option>														</select></td>												</tr>												<tr>													<td valign="top" width="40%">														<div align="right">															<font size="-2" color="#505050" face="Verdana, Arial, Helvetica, sans-serif">Number of colors to use in Design:</font><font size="-2" color="#2477ab" face="Verdana, Arial, Helvetica, sans-serif"><br>																	Note that the more colors,<br>																	the higher the cost.</font><font size="-2" color="#2477ab" face="Verdana, Arial, Helvetica, sans-serif"><br>															</font></div>													</td>													<td valign="top" width="60%"><input type="text" name="Secondary Design Color 1" size="2"></td>												</tr>												<tr>													<td valign="top" width="40%">														<div align="right">															<font size="-2" color="#505050" face="Verdana, Arial, Helvetica, sans-serif">Describe Design to be Printed:</font></div>													</td>													<td valign="top" width="60%"><textarea name="Secondary Design Description" rows="6" cols="45">Example: Our team name is "Practice Cactus!" and we would like that included somewhere along with a picture of the cactus. This time no horse.</textarea></td>												</tr>											</table>										</td>									</tr>									<tr>										<td valign="top" bgcolor="white" width="100%"><img src="add.jpg" alt="" width="25" height="25" align="left" border="0">											<table width="530" border="0" cellspacing="10" cellpadding="0" bgcolor="white">												<tr>													<td valign="top" width="40%">														<div align="right">															<font size="-2" color="#141c38" face="Verdana, Arial, Helvetica, sans-serif"><strong>Aditional</strong></font></div>													</td>													<td valign="top" width="60%"></td>												</tr>												<tr>													<td valign="top" width="40%">														<div align="right">															<font size="-2" color="#505050" face="Verdana, Arial, Helvetica, sans-serif">Personalization:</font></div>													</td>													<td valign="top" width="60%"><select name="Personalization Location" size="1">															<option value="None">None</option>															<option value="Left Chest">Left Chest</option>															<option value="Back">Back</option>														</select></td>												</tr>												<tr>													<td valign="top" width="40%">														<div align="right">															<font size="-2" color="#505050" face="Verdana, Arial, Helvetica, sans-serif">Player No.</font></div>													</td>													<td valign="top" width="60%"><select name="Player No" size="1">															<option value="one">None</option>															<option value='6" No.'>6" No.</option>															<option value='8" No.'>8" No.</option>														</select></td>												</tr>												<tr>													<td valign="top" width="40%"></td>													<td valign="top" width="60%"><textarea name="Additional Comments" rows="4" cols="45">Enter names and or player numbers.13 characters max for each personalization</textarea> </td>												</tr>												<tr>													<td valign="top" width="40%">														<div align="right">															<font size="-2" color="#505050" face="Verdana, Arial, Helvetica, sans-serif">Anything else we need to know?</font></div>													</td>													<td valign="top" width="60%"><textarea name="Additional Comments" rows="4" cols="45"></textarea></td>												</tr>											</table>										</td>									</tr>									<tr>										<td valign="top" bgcolor="white" width="100%"><img src="submit.jpg" alt="" width="25" height="25" align="left" border="0">											<table width="530" border="0" cellspacing="10" cellpadding="0" bgcolor="white">												<tr>													<td valign="top" width="40%">														<div align="right">															<font size="-2" color="#141c38" face="Verdana, Arial, Helvetica, sans-serif"><strong>Submit for Quote </strong></font></div>													</td>													<td valign="top" width="60%"></td>												</tr>												<tr>													<td valign="top" width="40%">														<div align="right">															<font size="-2" color="#505050" face="Verdana, Arial, Helvetica, sans-serif">Name:</font></div>													</td>													<td valign="top" width="60%"><input type="text" name="Name" size="24"></td>												</tr>												<tr>													<td valign="top" width="40%">														<div align="right">															<font size="-2" color="#505050" face="Verdana, Arial, Helvetica, sans-serif">email address:</font></div>													</td>													<td valign="top" width="60%"><input type="text" name="Email" size="24"></td>												</tr>												<tr>													<td valign="top" width="40%">														<div align="right">															<font size="-2" color="#505050" face="Verdana, Arial, Helvetica, sans-serif">Phone Number:</font></div>													</td>													<td valign="top" width="60%"><input type="text" name="Phone" size="24"></td>												</tr>												<tr>													<td colspan="2" valign="top">														<div align="left">															<font size="-2" color="#2477ab" face="Verdana, Arial, Helvetica, sans-serif">- After submitting this form, our sales department will e-mail a price quote within 24 hrs.<br>																	-	Upon receipt of the price quote, we'll ask to proceed with illustration.<br>																	-	The art department will go to work for you and create a design for you approval prior to production.</font></div>													</td>												</tr>												<tr>													<td valign="top" width="40%"></td>													<td valign="top" width="60%"><input type="submit" name="Submit for Quote and illustration" value="Submit"></td>												</tr>											</table>										</td>									</tr>									<tr>										<td valign="top" width="100%"><font size="-2" color="#505050" face="Verdana, Arial, Helvetica, sans-serif">After submitting this form, our team of artists and sales department will work together and email you an illustration of the design and a quote.<br>												This should take about a day, unless its Friday! Then we'll email you on Monday.<br>													This is not an order form, and you are not agreeing to buy anything.<br>													We hope you like it!</font></td>									</tr>								</table>							</form>						</div>					</td>				</tr>				<tr></tr>				<tr></tr>				<tr height="15">					<td align="left" valign="bottom" width="188" height="15" background="../LAYOUT/cut%20lines%20dark.jpg">						<div align="center"></div>					</td>					<td align="left" valign="bottom" width="100%" height="15" background="../LAYOUT/cut%20lines.jpg"></td>				</tr>				<tr height="15">					<td align="left" valign="bottom" bgcolor="#bbbdc3" width="188" height="15">						<table width="100%" border="0" cellspacing="5" cellpadding="0">							<tr>								<td>									<div align="center">										<font size="-2" color="#505050" face="Verdana, Arial, Helvetica, sans-serif">Call to order.</font></div>								</td>							</tr>						</table>					</td>					<td align="left" valign="bottom" bgcolor="#f2f2f2" width="100%" height="15">						<div align="center">							<table width="100%" border="0" cellspacing="5" cellpadding="0">								<tr>									<td>										<div align="center">											<font size="-2" color="#505050" face="Verdana, Arial, Helvetica, sans-serif">Thanks for visiting the <strong>A TEAM APPAREL</strong> web site. Please call 515-994-9244 with any questions!</font></div>									</td>								</tr>							</table>						</div>					</td>				</tr>			</table>			<table width="804" border="0" cellspacing="2" cellpadding="2" bgcolor="#141c38" height="10">				<tr>					<td width="20%" background="../Store/3.jpg">						<div align="center">							<font size="-2" color="#b2b2b2" face="Verdana, Arial, Helvetica, sans-serif"><a href="Art%20Request.html">Home</a></font></div>					</td>					<td width="20%" background="../Store/3.jpg">						<div align="center">							<font size="-2" color="#b2b2b2" face="Verdana, Arial, Helvetica, sans-serif"><a href="../Store/about.html">About</a></font></div>					</td>					<td width="20%" background="../Store/3.jpg">						<div align="center">							<font size="-2" color="#b2b2b2" face="Verdana, Arial, Helvetica, sans-serif"><a href="../Store/contact.html">Contact Us</a></font></div>					</td>					<td width="20%" background="../Store/3.jpg">						<div align="center">							<font size="-2" color="#b2b2b2" face="Verdana, Arial, Helvetica, sans-serif"><a href="../Store/Shipping.html">Shipping</a></font></div>					</td>					<td width="20%" background="../Store/3.jpg">						<div align="center">							<font size="-2" color="#b2b2b2" face="Verdana, Arial, Helvetica, sans-serif"><a href="../Store/policies.html">Policies</a></font></div>					</td>				</tr>			</table>			<br>			<br>		</div>	</body></html>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...