Ambiera Forum

Discussions, Help and Support.

Create a new account, Search, or Login:
Name: Password:
Ambiera Forum > RocketCake
contact form
Author Text

hennie
Registered User
Quote
2020-10-31 00:33:32

I use the help to create a contact form. Everything works, but i do not get the emails. What do i wrong?
I test it with a easy form.
Use this form:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="generator" content="RocketCake">
<title></title>
<link rel="stylesheet" type="text/css" href="contact_php.css">
</head>
<body>
<div class="textstyle1">
<form action="contact.php"
enctype="application/x-www-form-urlencoded"
method="POST" id="form_1fd9e86b">
<div id="form_1fd9e86b_padding" >
<div class="textstyle1">
<span class="textstyle2">Naam: </span>
<input type="text" value="" title="Vul je naam in." name="TextEdit1" id="edit_4bfff64d" >
<span class="textstyle2"><br/><br/>Email: </span>
<input type="text" value="" title="" name="TextEdit2" id="edit_365f079f" >
<span class="textstyle2"><br/><br/><br/>Bericht:<br/></span>
<input type="text" value="" title="" name="TextEdit3" id="edit_3a151bc" >
<span class="textstyle2"><br/><br/></span>
<input name="Button1" type="submit" value="Button Label" title="" id="button_63851a2" >
</div>
<div style="clear:both"></div>
</div>
</form>
<div id="php_276db422"><?PHP
$text = "";

foreach($_POST as $name => $value)

{

$text .= "$name : $value\n";

}



if ($text != "")

{

echo 'Thanks for contacting us.';

mail("xxx@gmail.com", "Contact form request", $text);

}
?></div>
</div>
</body>
</html>


steved123
Registered User
Quote
2020-10-31 10:37:08

Hi hennie,
1. did you save the page with the contact form as
a php-page >>> yourname.php
otherwise it cant work because the server needs to know
that he has to deal with php
2. did you test your contactform online (on your domain-space)
or your local computer?
For testing it on your local computer you need a
server like "xampp" which can parse php
sunny greetings from bavaria
and I hope I could help
Steve


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© 2020 Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact