How to work the form container and...

User 122279 Photo


Senior Advisor
14,455 posts
Online Now

Brian, you are right in that Christopher had overlooked the button type, but there were other things too that needed attention.

Christopher, with a bit of luck you should now have got a test submission of the form to the mail address in your php file. I have recreated the form and used my own php file, and it seems to be working. It took some time, then I had first thought you were using Foundation, as most people do, and started recreating the form, but then I had to start over in Bootstrap. I also scratched my head a bit over getting the form to fit into your page, without actually having to recreate the entire page.

I have not done any styling, other than the size, you will have to add the styles yourself. If you could please confirm that you got that mail I mentioned, then I know it is working and then I'll send you the files you need.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 2915245 Photo


Registered User
22 posts

I have created and started over many times with this form. This latest one was a really ast remake for the purposes of sharing. In past attempts, I had indeed selected the proper button type.
Thanks for catching it.

I've fixed it and it still does nothing. This is what's in my Apache log:

[27/Nov/2018:16:01:55 +0000] "OPTIONS * HTTP/1.0" 200 126 "-" "Apache/2.4.25 (Debian) (internal dummy connection)"
User 122279 Photo


Senior Advisor
14,455 posts
Online Now

Christopher, I'm waiting for your reply, whether you got a mail from the form I made or not (check the spam folder too). It is working for me, but I need to know if it's working for you too. No point in sending you the files if they don't work.

Maybe soneone else could also test it, you find it here: www.horgenhonning.net/test
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 2915245 Photo


Registered User
22 posts

I have not received any form emails.
What would be the domain it came from? I can check logs.
User 122279 Photo


Senior Advisor
14,455 posts
Online Now

See the url in my previous post
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 2915245 Photo


Registered User
22 posts

Yeah yours is working.
User 122279 Photo


Senior Advisor
14,455 posts
Online Now

I got your form mail. It was set up to go to both you and me. I'll remove my address then and send you the stuff. Regarding the Thanks page, you need to make one yourself, with Bootstrap. The one I have was just banged together, and it doesn't look nice. And mind you, my form has been made so that the php file has to sit in the same folder as the html pages. You may change that if you like, changing the reference in the form container (NOT the submit button).

Well, give me a couple of minutes...
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 122279 Photo


Senior Advisor
14,455 posts
Online Now

So, here we go.
You need to open the rsd file, and you should find a ready-made component of the 'form container1' which you have to load into your own component library. You may need to log into your CC account for that, since the component was created on my system instead of yours.
Then open your own project file and delete the Form container, and then insert the component by the same name into the empty space. I have tried to use the same settings as you had, but you may need to style the form to your liking.
What I have done differently:
I have left the h1 header outside the form container
I have not used h1 for the labels (name, email etc), that would be wrong, also from a SEO point of view.

What you also need to do:
Add a page to your project, call it thanks.html. Give it some text input saying more or less the same as on my thanks page. Or whatever else you want to have there, logo perhaps.
Upload the php file separately, don't add it to the resource library in SD3.
Attachments:
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 2915245 Photo


Registered User
22 posts

Inger,

Thank you for the help!

It turns out that the root cause was twofold.

1. The input elements within the form container do not need to have the form specified. In fact, for whatever reason, it breaks it.
2. As you were saying, the form container (The form) itself is the only portion that needs to call the PHP script.

After battling with my spam filters on the mail server, I was able to get this working.

NEXT UP: Integrate recaptcha nocaptcha

Thanks everyone for the help!
User 122279 Photo


Senior Advisor
14,455 posts
Online Now

I'm glad I was able to help.

As to the captcha, I have never messed with recaptcha and wouldn't be of much use for that, but if a regex captcha would be acceptable, you find one in my original form documents that can be downloaded from my sharing folder. You would then have to add it to the html page and uncomment it in the php page.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com



Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.