Forum Replies Created
are often better for cooling We may not necessarily be buying the concept
-
smc89441User posts: 4
ok I seemed to have it working thank you for you help…
I am having a problem with the contact/email thing however…when it’s live it doesn’t seem to work… is something wrong with this? it’s the only thing i edited:
<?php
$to = “social@eatwalloons.com”;
$from = “social@eatwalloons.com”;$headers = “From: ” . $from . “\r\n”;
$subject = $_POST[‘msg_subject’];
$body = $_POST[‘msg_subject’] . “\r\n\r\n”;$body .= “E-mail: ” . $_POST[’email’] . “\r\n”;
if ($_POST[‘field_’]) {
foreach ($_POST[‘field_’] as $key => $item) {
if ($item != ‘ ‘) {
$body .= “Field ” . $key . “: ” . $item . “\r\n”;
}
}
}if (filter_var($_POST[’email’], FILTER_VALIDATE_EMAIL)) {
if (mail($to, $subject, $body, $headers, “-f ” . $from)) {
$message = ‘OK’;
} else {
$errors = ‘Error’;
echo json_encode(array(‘errors’ => $errors));
exit;
}
} else {
$errors = ‘Error’;
echo json_encode(array(‘errors’ => $errors));
exit;
}echo json_encode(array(‘msg’ => $message));
exit;smc89441User posts: 4Also do i have to change anything for twitter_proxy.php?
Thanks
smc89441User posts: 4Ok those are taken care of…still not working
smc89441User posts: 4This reply has been marked as private.