Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 04:36:51 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155555 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Is form output always this messy?  (Read 715 times)
Gullytrotter

Offline Offline

Posts: 29



« on: January 31, 2008, 02:52:27 PM »

Hi people!

I have not installed the core replacement form editor yet, because I created a few forms with the old and cheesy one evil and I don't want to risk these existing forms to go haywire. I'm using WB 2.6.7.

A problem that I have is the output of the forms. It looks something like this in my MUA (Mutt):
Phone: 12345eMail: someone@somewhere.netAddress: some street

As you can imagine, this is hard to process both by hand or by script. Is there some way to clean this up?

Regards,
Chris
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7973



WWW
« Reply #1 on: January 31, 2008, 03:37:02 PM »

Hello,

depending on your server (Linux or windows) the linebreak is different. As far as i remember this is fixed in the advanced form. As you don't wanna use this, compare the files from normal and advanced form and try to adapt the oldone yourself.

Matthias
Logged
Gullytrotter

Offline Offline

Posts: 29



« Reply #2 on: February 14, 2008, 08:38:45 PM »

Ok, time to bring this really old and really dead thread back to life. evil

I installed the form update. It did change the view a little, as now I also see the headings in the eMail. However, the output is still very messy (I didn't add any line breaks my MUA displays it just like this):

===[Persönliche Daten]===Name: MustermannVorname: MaxStraße und Haus-Nr.:
Musterstr. 41PLZ: 85745Ort: MusterstadtTelefon:
02754/87541===[Geburtsdatum]===Tag: 01Monat: 04Jahr: 1974===[Bankverbindung
(bitte kein Sparkonto)]===Konto: 125489789789BLZ: 41874592

The server is Linux based. I don't know the details of that. "uname -a" spits out this:
Linux infong180 2.6.16.33-20070131a-areca-filemon-3ware-e1000 #1 SMP Wed Jan 31 02:48:22 CET 2007 i686 unknown

The recieving client ist also a Unix based client:
Mutt/1.5.16 (FreeBSD/6.3-STABLE (sparc64))

Normally that should work together. But the output is even hard for humans to process. I doubt that I can get a script to sort out the input reliably. Any ideas?

Regards,
Chris
Logged
pcwacht
AddOn Development
*
Offline Offline

Posts: 2859



WWW
« Reply #3 on: February 14, 2008, 09:12:49 PM »

1st idea is to check the database to see how the entries are stored, is there an end-of-line character?
if there is, use that to break the lines
if not, look at the source and try adding a line break or another character wich help you in reading.

Didn't have time to look into it.

John
Logged

http://www.ictwacht.nl = Dutch ICT info
http://www.pcwacht.nl = My first
both still work in progress, since years.....
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7973



WWW
« Reply #4 on: February 15, 2008, 07:05:52 AM »

Hello,

Quote
It did change the view a little, as now I also see the headings in the eMail.
Quote
However, the output is still very messy

How was the output befor you've done your changes. Using the modul as it is brings perfect linebreaks. So if the result ist after your changes not that what you want, the problem is in your changes and not in the modul.

Matthias
Logged
Gullytrotter

Offline Offline

Posts: 29



« Reply #5 on: February 15, 2008, 10:31:31 AM »

Good Morning!

Slight misunderstanding here. grin

I didn't change the module's code, I just installed the new form module (as instructed on the download page). After I installed the new module, I did see changes in the "look and feel". The forms editor is a little different, there are new functions and the the eMail now contains the headers (like "===[Persönliche Daten]==="). However, the line break still doesn't work. sad

Did I mess up somewhere or what happened?

Regards,
Chris
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!