How to work the form container and...

User 2915245 Photo


Registered User
22 posts

Hello all,

I've been trying to automate a simple email contact form in RSD3.

To do this, I've inserted a 'form container' and then put some input, text area boxes, and a submit button. Then I named them and set actions on the form container, and the submit button.

For the post actions o the container and the button I have put a full URL to a PHP script.

It doesn't work. It does nothing.

So then I added an html element and set up the same input fields and button with the same names, and pointed the post action to the same PHP script and it works.

So my question is, how do I use RSD 3's form container and input boxes instead of the html element? Clearly I'm doing something wrong, or something is missing.
User 122279 Photo


Senior Advisor
14,450 posts

I don't know if this helps, but I have a working form created with SD3, versions for both Bootstrap and Foundation, in my sharing library, see URL in my signature. It also has a php script, and then a pdf file telling you how to use it. You could take a look and see if it explains something that you need. Have to say, though, that my form is just a basic one.
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

That's a good suggestion Inger, and I looked at your PDF. However, the version of RSD3 I have (latest) doesn't add the 'pattern=' to the form stuff.
From what I can tell, its fine. Except that its wrapped in a style.

I can't help but feel that I need to modify the php file, or add something to the style, to get it to trigger correctly.

Here is the code generated by RSD 3:
<form class="form-container form-container-1" method="post" action="http://www.trmprecision.com/phpscripts/send_form_email.php" enctype="text/plain">
<h1 class="heading-5">Please fill out the form below and we'll get right back to you!<br>
</h1>
<h1 class="heading-6"><span class="heading-text-18">name:</span><br>
</h1><input value="" name="contact_name" type="text" form="contact_form" title="contact_name" class="input-1">
<h1 class="heading-7"><span class="heading-text-21">email address:</span>
</h1><input value="" name="contact_email" type="text" class="input-2" form="contact_form" title="contact_email">
<h1 class="heading-8"><span class="heading-text-22">Message:</span>
</h1><textarea name="contact_message" form="contact_form" class="textarea-1">Type your inquiry here.</textarea><button type="button" class="btn" formaction="http://www.trmprecision.com/phpscripts/send_form_email.php" formmethod="post" formenctype="text/plain" form="contact_form">Submit<br></button>
</form>

User 122279 Photo


Senior Advisor
14,450 posts

Instead of posting the code, do you mind posting the .rsd project file? If it is part of a larger site, you can make a copy and delete the other pages. It's only the form configuration and setup I need to see.

Oh, and your php file, please.
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 can't seem to upload the RSD file. It times out and I get a server error.
User 2915245 Photo


Registered User
22 posts

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin@coffeecup.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

1231pm Mountain time
11/25/18
User 122279 Photo


Senior Advisor
14,450 posts

If you have a dropbox or similar, zip it up and pop it in there.
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,450 posts

While waiting for your files I tried copying the form code over into the HTML Editor, then changed a couple of things. I tried submitting it, but it doesn't seem to go, or at least there is no closing of the form page or anything telling if a form actually has been submitted or not.
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,450 posts

I just get a 403 (forbidden) when I click on that link. Try zipping it.
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.