Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
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 |
||||
|
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. |
||||
|
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? |
||||
|
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. |
||||
|
Sorry took a while to respond - how do I change the colour of the text 'thanks for contacting us...'? |
||||
|
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>'; |
||||
|
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 |
||||
|
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. |
||||
|
Thanks Erik, but forgive my ignorance, but how do I do that? thanks |
||||
|
Sorry I meant how for both... How to specify size & colour? Also how to redirect after pressing send to a different webpage? thanks again |
||||
|
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) |
||||
|
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?? |
||||
|
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. |
|