Congratulations to AcaCandy on her 100,000th post!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer black screen blue screen boot bsod computer connection crash css dell display drive driver drivers email error ethernet excel firefox firefox 3 game hard drive internet internet explorer itunes laptop linux malware monitor network networking nvidia outlook outlook 2003 outlook 2007 outlook express partition problem router slow software sound trojan usb video virus vista windows windows xp wireless
Software Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
Form to E-mail back to a Viewable Form


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
jiggard's Avatar
Junior Member with 26 posts.
 
Join Date: Jun 2005
Experience: Advanced
23-Jun-2005, 12:08 PM #1
Form to E-mail back to a Viewable Form
I have my form sending to my e-mail so it prints out my data line by line. Can anyone give me some pointers on how to get this data into a nice form that can easily be read.

E-mail from From Looks like this.

jnum=12345
jtitle=blah
fname=nick
mi=d
lname=johnson
ssn=1234
email=blah@blah.com
oname=
address=123321
jabberwo's Avatar
Junior Member with 2 posts.
 
Join Date: Jun 2005
Experience: Advanced
29-Jun-2005, 11:42 PM #2
You'll need a programming language
I'm not exactly sure how you got the data to your email account, but you probably used some sort of server-side language in the process.

To manage this data more efficiently, you need some sort of programming language on the web server. There's a good chance you have access to perl (a powerful if somewhat old-fashioned and geeky language) or perhaps one of the more modern workhorses, PHP or ASP.NET.

The language on the server will interpret all the information as variable / value pairs, and you can use the variables to create as sophisticated a look as you want. You can then save this data as a file, send it as an email, or whatever else you wish...

Hope this helps!
Sujit Joshi's Avatar
Junior Member with 18 posts.
 
Join Date: Jun 2005
Experience: Beginner
02-Jul-2005, 04:50 AM #3
Use html tags in your scripting language
i guess that you are using some server side scripting language like PHP,ASP...
if you are using PHP as server side scripting language then u might be using mail() in ur program right? then before sending mail using mail() put all u r data values in a table in some proper fasion some thing like this

<?php
$table = "<html><head><body>";
$table .= "<table width='80%'>";
$table .= "<tr><td>Jnumber</td><td>'.$jnum.'</td>";
$table .= "<tr><td>Title</td><td>'.$jtitle.'</td>";
$table .= "<tr><td>First name</td><td>'.$fname.'</td>";
$table .= "<tr><td>mi</td><td>'.$mi.'</td>";
$table .= "<tr><td>lname</td><td>'.$lname.'</td>";
$table .= "<tr><td>ssn</td><td>'.$ssn.'</td>";
$table .= "<tr><td>email</td><td>'.$email.'</td>";
$table .= "<tr><td>oname</td><td>'.$oname.'</td>";
$table .= "<tr><td>address</td><td>'.$address.'</td>";
$table .= "</body></head></html>";
?>

and then use this $table variable as u r body parameter for mail().
try it out i think it will work.
good luck
Rockn's Avatar
Computer Specs
Distinguished Member with 17,888 posts.
 
Join Date: Jul 2001
Location: Mexico of the North, MN
Experience: Disenfranchised American Male
02-Jul-2005, 12:21 PM #4
That would only be is they were using PHP, kind of useless on a site that may not support it.
jiggard's Avatar
Junior Member with 26 posts.
 
Join Date: Jun 2005
Experience: Advanced
05-Jul-2005, 09:53 AM #5
Works Great
Thanks for that code. It is working great. Thanks again!!!
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 03:56 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.