Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Web Site Functionality _ contact form

Posted by: lhfeldt Nov 30 2020, 04:55 PM

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>

Posted by: CharlesEF Nov 30 2020, 05:18 PM

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.

Posted by: Christian J Nov 30 2020, 07:03 PM

QUOTE(lhfeldt @ Nov 30 2020, 10:55 PM) *

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

Posted by: Christian J Nov 30 2020, 07:05 PM

QUOTE(CharlesEF @ Nov 30 2020, 11:18 PM) *

We need to see the PHP code related to this form. According to the form action attribute that points to an outside web site.

My guess is that huusfeldt.com is the Op's own site...

Posted by: CharlesEF Dec 1 2020, 04:10 AM

Most likely you're right. But we still need to see it.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)