contact form, help to fill in the last bits to make it work... |
contact form, help to fill in the last bits to make it work... |
lhfeldt |
Nov 30 2020, 04:55 PM
Post
#1
|
Group: Members Posts: 1 Joined: 30-November 20 Member No.: 27,663 |
I have the following code for my contact form but can't find the problem as it keeps saying 'unable to send your message' (huusfeldt.com)
<form action="http://www.huusfeldt.com/cgi-bin/FormMail.pl" method="POST" class="u-block-1825-17 u-clearfix u-form-spacing-15 u-form-vertical u-inner-form" source="custom" style="padding: 0px;"><!-- hidden inputs for siteId and pageId --> <input type="hidden" id="siteId" name="siteId" value="157398"> <input type="hidden" id="pageId" name="pageId" value="157399"> <div class="u-form-group u-form-name"> <label for="name-b11f" class="u-form-control-hidden u-label">Name</label> <input type="text" placeholder="Dit navn" id="name-b11f" name="name" class="u-border-1 u-border-white u-input u-input-rectangle" required=""> </div><!-- always visible --> <div class="u-form-email u-form-group"> <label for="email-b11f" class="u-form-control-hidden u-label">Email</label> <input type="email" placeholder="Din e-mail" id="email-b11f" name="email" class="u-border-1 u-border-white u-input u-input-rectangle" required=""> </div> <div class="u-form-group u-form-message"> <label for="message-b11f" class="u-form-control-hidden u-label">Message</label> <textarea placeholder="Din besked" rows="4" cols="50" id="message-b11f" name="message" class="u-border-1 u-border-white u-input u-input-rectangle" required=""></textarea> </div> <div class="u-form-group u-form-submit"> <a href="#" class="u-btn u-btn-submit u-button-style u-palette-3-base u-btn-1">SEND</a> <input type="submit" value="submit" class="u-form-control-hidden"> </div> <div class="u-form-send-message u-form-send-success"> Thank you! Your message has been sent. </div> <div class="u-form-send-error u-form-send-message"> Unable to send your message. Please fix errors then try again. </div> <input type="hidden" value="" name="recaptchaResponse"> </form> |
CharlesEF |
Nov 30 2020, 05:18 PM
Post
#2
|
Programming Fanatic Group: Members Posts: 1,981 Joined: 27-April 13 From: Edinburg, Texas Member No.: 19,088 |
I don't think anyone can help with only the HTML you've posted. We need to see the PHP code related to this form. According to the form action attribute that points to an outside web site. If you can't have all the files on your server then I suggest you find another contact us form. Or, maybe re-read the docs.
|
Christian J |
Nov 30 2020, 07:03 PM
Post
#3
|
. Group: WDG Moderators Posts: 9,656 Joined: 10-August 06 Member No.: 7 |
I have the following code for my contact form but can't find the problem as it keeps saying 'unable to send your message' (huusfeldt.com) There's a client-side form validation message in the HTML code you posted (which may be intended to work together with some javascript), saying verbatim "Unable to send your message. Please fix errors then try again." --is that the error you get? If so there might be a problem with the javascript. If that's not the exact message maybe it's the server-side script causing it, in which case we need to see the server-side script. CODE <form action="http://www.huusfeldt.com/cgi-bin/FormMail.pl" Is that Matt's FormMail? The original version is decades old and has security issues, but there are improved replacement scripts available: https://en.wikipedia.org/wiki/Matt%27s_Script_Archive |
Christian J |
Nov 30 2020, 07:05 PM
Post
#4
|
. Group: WDG Moderators Posts: 9,656 Joined: 10-August 06 Member No.: 7 |
|
CharlesEF |
Dec 1 2020, 04:10 AM
Post
#5
|
Programming Fanatic Group: Members Posts: 1,981 Joined: 27-April 13 From: Edinburg, Texas Member No.: 19,088 |
Most likely you're right. But we still need to see it.
|
Lo-Fi Version | Time is now: 25th April 2024 - 06:54 AM |