HTML Form getting hung up

Permalink
My customers HTML form keeps getting hung up and not submitting.. Is this form too long or something? They're also saying the email they get after the form submits (when it did submit) is three pages long, double spaced, and adds numbers before each question.. Is there any way to clean that up?

http://semproducts.com/contact/literature-request/...

getjoel
 
getjoel replied on at Permalink Reply
getjoel
Anyone?
Ekko replied on at Permalink Reply
Ekko
Use the built in form that comes with core, it can do exactly what your form is doing now, without all that sticky mess. :)
jordanlev replied on at Permalink Reply
jordanlev
Your question does not provide a lot of details... what does the form post to (a concrete5 block? A concrete5 single_page? An external site?)? What does it do? What is the code that is handling the form post? etc.
getjoel replied on at Permalink Reply
getjoel
That is the Concrete5 core HTML form. I'm not sure how much more detail I can give. They set up a REALLY long form.. and now it's timing out when people try to submit it. Is there such a thing as a form that's too long?
jordanlev replied on at Permalink Reply
jordanlev
Oh I see... the terminology is confusing, because there is no "core HTML form", there's actually two different blocks: "Form" and "HTML" (I thought you meant that you pasted in form HTML from an external site, which is a common thing to do).

So that form is kind of long, but it's just text boxes and I don't see how it would make things go that much slower. Not really sure how to diagnose it either... maybe check the "Net" panel in Firebug to see if that gives you any ideas? Also check the php and/or apache error logs on your server to see if something is erroring out?

As for the double-spacing, you can edit this line in SITEROOT/concrete/blocks/form/controller.php (it's line #362 in Concrete5.5, might be something else in 5.4):
$submittedData .= $questionAnswerPair['question']."\r\n".$questionAnswerPair['answer']."\r\n"."\r\n";

... each of the "\r\n" pairs is a line break. So if you only want one line break after each answer, change that code to this:
$submittedData .= $questionAnswerPair['question']."\r\n".$questionAnswerPair['answer']."\r\n";
getjoel replied on at Permalink Reply
getjoel
Did you get my response via email in regards to the double spacing? I don't seem to have that page and I have a version over 5.5.

Also.. Unfortunately I just checked a much smaller form on the same site and it's taking forever to submit? What else could cause this kind of thing?
jordanlev replied on at Permalink Reply
jordanlev
No, didn't get an email. Try this file:
SITEROOT/updates/concrete5.5.x/blocks/form/controller.php

(replace 5.5.x with the latest version number you see there).

If it's taking forever for a smaller form to submit, then there's some other problem related to your server setup I imagine. Unfortunately there's no way for me to know what that could be (it's not something I've come across before).