Forums

[Solved] "Submit Article" html problem

tobisagt 01 Nov, 2011
Hello,

for the registered users i've made a form to submit articles. At the same time it sends an email to the administrator.

So far so good. All works fine. My only problem is that the articles dont show html. (<br /> and <p>)

The Email looks correctly.

Any idea what to do?

- Tobi
GreyHead 02 Nov, 2011
Hi tobi,

Is the HTML saved in the database? You may need to debug to find out exactly where it is being removed.

Bob
tobisagt 02 Nov, 2011
Hi Bob, thx for reply

yes data is saved.

Heres my code:

Array
(
    [autor] => Test User
    [titel] => Test
    [text] => This is a test message!

This text comes after a break.
    [senden] => Send
    [a4a825de94d464e4e16b6849da53d1ea] => 1
    [chronoform] => News
    [event] => submit
    [format] => html
    [Itemid] => 265
    [option] => com_chronoforms
    [view] => form
    [chronoform_data] => Array
        (
            [cf_uid] => 69f809ee8250cd289f4133afaf9cfb98
            [cf_created] => 2011-11-02 16:50:27
            [cf_ipaddress] => ###.###.###.###
            [cf_user_id] => 63
            [autor] => Test User
            [titel] => Test
            [text] => This is a test message!

This text comes after a break.
            [senden] => Send
            [a4a825de94d464e4e16b6849da53d1ea] => 1
            [chronoform] => News
            [event] => submit
            [format] => html
            [Itemid] => 265
            [option] => com_chronoforms
            [view] => form
            [cf_id] => 4
        )

    [chronoform_data_cf_id] => 4
    [created_by] => 63
    [created] => 2011-11-02 16:50:27
    [catid] => 63
    [sectionid] => 0
    [state] => 1
    [title] => Test
    [fulltext] => 
    [introtext] => This is a test message!

This text comes after a break.
    [created_by_alias] => Test User
    [alias] => test
    [id] => 
    [Article] => Array
        (
            [cf_uid] => 25cf7fe4247aac23ad0e441f191c7708
            [cf_created] => 2011-11-02 16:50:27
            [cf_ipaddress] => ###.###.###.###
            [cf_user_id] => 63
            [autor] => Test User
            [titel] => Test
            [text] => This is a test message!

This text comes after a break.
            [senden] => Send
            [a4a825de94d464e4e16b6849da53d1ea] => 1
            [chronoform] => News
            [event] => submit
            [format] => html
            [Itemid] => 265
            [option] => com_chronoforms
            [view] => form
            [chronoform_data] => Array
                (
                    [cf_uid] => 69f809ee8250cd289f4133afaf9cfb98
                    [cf_created] => 2011-11-02 16:50:27
                    [cf_ipaddress] => ###.###.###.###
                    [cf_user_id] => 63
                    [autor] => Test User
                    [titel] => Test
                    [text] => This is a test message!

This text comes after a break.
                    [senden] => Send
                    [a4a825de94d464e4e16b6849da53d1ea] => 1
                    [chronoform] => News
                    [event] => submit
                    [format] => html
                    [Itemid] => 265
                    [option] => com_chronoforms
                    [view] => form
                    [cf_id] => 4
                )

            [chronoform_data_cf_id] => 4
            [created_by] => 63
            [created] => 2011-11-02 16:50:27
            [catid] => 63
            [sectionid] => 0
            [state] => 1
            [title] => Test
            [fulltext] => 
            [introtext] => This is a test message!

This text comes after a break.
            [created_by_alias] => Test User
            [alias] => test
            [id] => 225
        )

    [article_id] => 225
)
tobisagt 05 Nov, 2011
No idea what i'm doing wrong?๐Ÿ˜Ÿ
GreyHead 05 Nov, 2011
Hi tobisagt,

The debug info doesn't tell us anything very useful here. Please use PHPMyAdmin to check exactly what is being saved in the database.

Bob
tobisagt 05 Nov, 2011
Hi Bob,

i uploaded a screenshot from my PHPMyAdmin.
GreyHead 06 Nov, 2011
Hi tobisagt,

Hmmm I still can't tell much :-(

Please take a Form Backup using the icon in the Forms Manager and post it here (as a zipped file) or PM or email it to me and I'll take a closer look.

Bob
tobisagt 06 Nov, 2011
I send a PM. Thx for help.
GreyHead 06 Nov, 2011
Hi tobisagt ,

I haven't received a PM from you?

Bob
tobisagt 06 Nov, 2011
Oh sry, i pressed the save button not submit๐Ÿ™‚

Now you should got it!
GreyHead 07 Nov, 2011
Hi tobisagt,

It all looks Ok here - see the images below: the form, the database entry and the article.

Bob
[attachment=2]07-11-2011 12-28-35.png[/attachment]
[attachment=1]07-11-2011 12-29-29.png[/attachment]
[attachment=0]07-11-2011 12-31-53.png[/attachment]
tobisagt 07 Nov, 2011
Hi Bob,

ok, that was an misunderstanding, sry for that! ๐Ÿ˜ถ

I know he writes html if i write it in the textarea.
But what i want is, if i press the enter button it should insert a <br /> tag.

My user dont know anything about HTML, so its necessary.
GreyHead 07 Nov, 2011
Hi tobisagt,

Ah, a different problem. Please see this post

Bob
tobisagt 07 Nov, 2011
Thank you Bob for help! That works. ๐Ÿ˜€
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger