Search…

X3 Photo Gallery Support Forums

Search…
 
xhowiexo
Topic Author
Posts: 6
Joined: 22 May 2018, 10:59

Contact form broken

06 Jan 2019, 16:24

<div>
<input required="" type="text" name="name" placeholder="Name">
</div>
<div>
<input required="" type="email" name="email" placeholder="Email">
</div>
<div>
<input required="" type="text" name="telefon" placeholder="Telefon">
</div>
<div>
<textarea required="" rows="9" name="message" placeholder="Nachricht"></textarea>
</div>
<button type="submit">Senden</button>


FOrm does Show only the Name field and then it shows html code
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Contact form broken

06 Jan 2019, 23:04

There is nothing wrong in the HTML code you have provided. I would need to see the page's entire "content" to locate the HTML typo, and a link to the page would allow me to diagnose properly also.
 
xhowiexo
Topic Author
Posts: 6
Joined: 22 May 2018, 10:59

Re: Contact form broken

05 Feb 2019, 18:03

 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Contact form broken

06 Feb 2019, 00:21

As you can see in my screenshot, your first field is correct, but the the other fields you have somehow wrapped inside <pre><code> tags, which means what is inside will be rendered LITERALLY, instead of as HTML. Either this is a mistake in your code, or perhaps you are copy-pasting from another application, or perhaps you are pasting into the WYSIWIG editor?
ImageI can only fix this for you if you can provide control panel login. Your HTML is wrong ... the <pre><code> should not be there.
 
User avatar
Dane
Experienced
Posts: 121
Joined: 04 Dec 2020, 15:05

Re: Contact form broken

04 Dec 2020, 22:14

Hi there!

I found out after the installation that I have the same problem. My contact form is not displayed.

Image

Can anybody help me to fix this problem?

The full content is:
Code
<div>
    <input type="text" name="name" placeholder="Name" required="">
</div>
<div>
    <input type="email" name="email" placeholder="Email" required="">
</div>
<div>
    <textarea rows="6" name="message" placeholder="Message" required=""></textarea>
</div>

<!-- Uncomment below section to include GDPR required email consent -->
<!--
<div>
    <input type="checkbox" id="consent" name="consent" required>
    <label for="consent">By using this form you agree with the handling of your data by this website.</label>
</div>
-->

<button type="submit">Senden</button>
Thanks!
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Contact form broken

04 Dec 2020, 23:21

Did you change the markdown-editor to wysiwig-editor? I see in your screenshot that the HTML code is coming up in the output, which means the html-code has been added to the preview mode, instead of into the SOURCE code. This would not happen in the markdown-editor.
 
User avatar
Dane
Experienced
Posts: 121
Joined: 04 Dec 2020, 15:05

Re: Contact form broken

04 Dec 2020, 23:29

Yes i changed it, but i go back to the markdown-editor. 
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Contact form broken

05 Dec 2020, 01:43

Dane wrote:Yes i changed it
You can use the wysiwig editor, but then you must paste the code into the editors SRC-mode. The wysiwig editor is not practical when dealing with HTML code for advanced content.
Dane wrote:but i go back to the markdown-editor.
It's recommended. The markdown-editor has a single mode (source-mode), where you can add HTML, yet it still highlights formatted text. Better control and easier to read.
 
User avatar
Dane
Experienced
Posts: 121
Joined: 04 Dec 2020, 15:05

Re: Contact form broken

05 Dec 2020, 09:16

Thank you! Now it works! :-)