There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer black screen boot computer connection crash css dell display driver drivers email error ethernet excel explorer firefox firefox 3 freeze game hard drive internet internet explorer itunes laptop linux malware monitor network networking nvidia outlook outlook 2003 outlook express partition password printer problem router slow software sound trojan usb video virus vista windows windows xp wireless
Web Design & Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
PHP Form - Formatted Message Delivery


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
hicksjt's Avatar
Senior Member with 114 posts.
 
Join Date: Jul 2005
31-Oct-2006, 01:11 PM #1
PHP Form - Formatted Message Delivery
My hosting provider has made available a pre-made script for handling form information once the user fills out the fields. My question comes after that information has been submitted. Is there a way to format or tidy up the user data into a nice-looking email message?

Thanks for any feedback.
cpscdave's Avatar
Senior Member with 281 posts.
 
Join Date: Feb 2004
Experience: Intermediate
31-Oct-2006, 03:02 PM #2
How exactly do you want it formated??
You can pretty much do anything you want to the text just gotta know how to
hicksjt's Avatar
Senior Member with 114 posts.
 
Join Date: Jul 2005
31-Oct-2006, 03:12 PM #3
Instead of this:

From: Some User
>>>>>> Subject: Some Topic
>>>>
> >>>>Message: Some Text
>>>>
>>>>>>
>>>> ---------------------------------

Maybe something like this:

Subject
Some Subject

Message
Some Text

Even combined with images, tables, etc. I was just looking to have the message look more professional.
cpscdave's Avatar
Senior Member with 281 posts.
 
Join Date: Feb 2004
Experience: Intermediate
31-Oct-2006, 03:25 PM #4
Easiest method would be if you could modify the pre-made script to grab From, subject and body before its built into what you posted.

Otherwise you can take a look at breaking it up using strpos to find the start of each section and then using substr to it apart.
__________________
Its not a bug.... Its a feature!

Programming today is a race between software engineers striving to build bigger and better idiot-proof
programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
-Rick Cook

Spam a problem for you? http://spamooze.com
covert215's Avatar
Account Disabled with 2,651 posts.
 
Join Date: Apr 2006
Experience: Web Designer
31-Oct-2006, 03:30 PM #5
Use http://www.tele-pro.co.uk/scripts/contact_form/ to generate a sending file/form for you. Very easy to use.
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 11:44 PM.
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.