Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > WebsitePainter
Webform

ooievaar
Registered User
Quote
2014-11-02 12:42:26

Hi
For some weeks I am trying to make a webform without succes.
I followed the instructions from the WSP tutorial and used the php code that was send to me by the helpdesk but I can't get it working.
I started with making a new page which I named UntitledPage1.php
Next step, insert a webform with some text edit fields a webform button and the php code.
In the action field I wrote UntiledPage1.php
Looking in the preview it looks oke but when I push the send button an error code appears as down below with this message.
I don't no what I am doing wrong and it's driving me crazy.
Is there anybody who can help me out of this problem.

$text = "";
foreach($_POST as $name => $value)
{
$text .= "$name : $value\n";
}

if ($text != "")
{
echo 'Thanks for contacting us.';
mail("youremail@example.com", "Contact form request", $text);
}


there's no webpage found for this webadres
file:///private/var/folders/20/jfg059qj23n3k9jv1sv_n68r0000gn/T/TemporaryItems/websitepainter_preview/UntitledPage1.php
Foutcode: ERR_FILE_NOT_FOUND


erik
Registered User
Quote
2014-11-03 05:08:25

Did you create a website with the extension .php with the .php code? And did you set it as action in the web form property window?


pgn5
Registered User
Quote
2015-02-13 11:56:11

Hi all!
Sorry for my English.

Please help me set contact form.
I set all from manual (create contact.php etc) - all work great.

What i need change for:
1. use 3 elements in Web Form (Name, Mail, Message)
2. use check mail address in web form
3. now when i press "sent message" web form, i have message "Thanks for contacting us" but i stay on www.mysite/contact.php - can i redirect to mypage.html page when i sent message from webform?


niko
Moderator
Quote
2015-02-15 18:45:52

You could add a redirect tag into there, maybe. Or better print a link, so that the user clicks back to that page.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Int?rnational" (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