DotDragnet
May 21, 2012, 05:02:50 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: follow us on twitter @dotdragnet
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Tarting up a form's output/results  (Read 945 times)
Haze
Hero Member
*****
Posts: 1485



View Profile Awards
« on: October 30, 2007, 06:19:28 PM »

HI,
I've set up a form and the output from the form is received as simple text with insertion of form's variables e.g. $name, $address, etc. How could I have the form results look better than a simple text file output? The form is all laid out with simple php. I already send a copy of the form output to the form filler, but that extra bit of branding would be nice. Typical results from the form's output are:
Quote
Hi dr haze

Thank you for your email.

We will endeavour to reply to you shortly.

Please DO NOT reply to this email.

Below is a copy of the message you submitted:
--------------------------------------------------
Enquiry

Name: dr andrew downie
Address:  lanark,scotland
Telephone Number: 01000000000
Email Address: me@home.com

Type of Enquiry: employment
Care Type: hi there,
this is a test message.......
thanks
andrew
Is it advisable to do it at all? Should the simple results be left as they are?
Logged
sarahA
DDN Contribs
Hero Member
*****
Posts: 2174



View Profile WWW Awards
« Reply #1 on: October 30, 2007, 08:15:34 PM »

If you want to stick with plain text then you could use \t to give a tab, so use what you need to line the results up.

Otherwise you could have the message sent as html and use html in the form, but ideally you want to send both html and text for anyone who has html disabled
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2006-2008, Simple Machines Valid XHTML 1.0! Valid CSS!