Hi..
i'm very happy...finally i finished my website with couchcms..
i have 'success' to made all of page..include the global setting..
but..there's only one page that doesn't work with global setting...the page is feedback.php
when someone filled my form on form page...the form direct go to feedback.php... and feedback.php send me the detail of form via email..
when i setting it to global setting...the value of global setting doesn't appeared in this page..
here may code of feedback.php:
any suggestion?
thanks before
i'm very happy...finally i finished my website with couchcms..
i have 'success' to made all of page..include the global setting..
but..there's only one page that doesn't work with global setting...the page is feedback.php
when someone filled my form on form page...the form direct go to feedback.php... and feedback.php send me the detail of form via email..
when i setting it to global setting...the value of global setting doesn't appeared in this page..
here may code of feedback.php:
- Code: Select all
<?php
$mailto = "mail@gmail.com";
$subject = "Feedback form";
$message = "Values submitted from web site form:";
$header = "From: ".$_POST['email'];
foreach ($_POST as $key => $value)
{
if (!is_array($value))
{
$message .= "\n".$key." : ".$value;
}
else
{
foreach ($_POST[$key] as $itemvalue)
{
$message .= "\n".$key." : ".$itemvalue;
}
}
}
mail($mailto, $subject, stripslashes($message), $header);
?><!doctype html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="ISO-8859-1">
<title><cms:get_custom_field 'site_name' masterpage='globals.php' /> | <cms:get_custom_field 'site_desc' masterpage='globals.php' /></title>
<link rel="shortcut icon" href="<cms:get_custom_field 'favicon' masterpage='globals.php' />">
<style type="text/css">
any suggestion?
thanks before