Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
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 |
||||
|
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? |
||||
|
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? |
||||
|
You could add a redirect tag into there, maybe. Or better print a link, so that the user clicks back to that page. |
|