Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > WebsitePainter
Response in contact form

andyz99
Registered User
Quote
2011-05-15 17:30:47

Sorry another question...
How would I either send a response to the the person filling out the contact form, or once submit has been pressed automatically opening another page (thanks for sending your message) for example?
Hope this makes sense.

Thanks


niko
Moderator
Quote
2011-05-15 18:31:27

Response to the contact form: If the person enters his email adress, just send them a mail? Not sure if I understood correctly what you mean here.


andyz99
Registered User
Quote
2011-05-16 08:47:52

Niko,
thanks for the reply, I shall try to explain a scenario.....

A person visits my website
They fill in the contact form
WHen they press Submit... a page automatically opens saying "Thanks for your message, someone will be in contact in due course".

At the moment nothing confirms to them that their message has been sent. The php code refers to "echo 'Thanks for contacting us.';" But nothing like that displays - just the blank contact form displays.

I hope this makes sense?


niko
Moderator
Quote
2011-05-16 16:47:41

Usually, that 'thanks for contacting us' text should be displayed, but maybe it simply isn't visible on the background of your website? Maybe try using a different color (just to test it out), maybe it helps.


andyz99
Registered User
Quote
2011-06-22 22:17:55

Sorry took a while to respond - how do I change the colour of the text 'thanks for contacting us...'?


niko
Moderator
Quote
2011-06-23 07:52:11

You could also change the background color of your page using WebsitePainter. But For changing the text, instead of

echo 'Thanks for contacting us.';


use something like this:

echo '<div style="color: red;">Thanks for contacting us.</div>';



Guest
Guest
Quote
2013-02-20 20:32:44

Further to this post earlier, how can I change the size of the text or once send is pressed open a new page?
thanks in advance


erik
Registered User
Quote
2013-02-22 06:45:01

I think you can do this by setting a page target to your form element. Font size: Add a fontsize style into the style above.


Post
Guest
Quote
2013-02-22 19:09:17

Thanks Erik, but forgive my ignorance, but how do I do that?

thanks


Post
Guest
Quote
2013-02-23 15:29:27

Sorry I meant how for both...
How to specify size & colour?

Also how to redirect after pressing send to a different webpage?

thanks again


niko
Moderator
Quote
2013-02-24 21:23:59

In the form element, you have an 'Action' entry. Set this to a website url, and this website should then open.
About size and colour: Instead of echo '<div style="color: red;">Thanks for contacting us.</div>'; try something like this:

echo '<div style="color: red; font-size:32pt;">Thanks for contacting us.</div>';

(Notice the added font-size for changing the font size)


Guest
Guest
Quote
2013-02-25 17:37:14

niko,

thanks for that answers however I have had a mixed response...

the code for changing size etc works well thanks. However if I try the other method of opening another page to say thats etc the new page opens, but it does not send the text in the form, in other words the CGI mailer is not sent or received.

Any ideas??


erik
Registered User
Quote
2013-02-27 12:33:08

AFAIK, if you set a target site, then the code for handling the request (in your canse the PHP code) needs to be put onto that page. Just copy and paste your PHP code element onto the target page and it should work.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internation?l" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact