Calgarypuck Forums - The Unofficial Calgary Flames Fan Community

Go Back   Calgarypuck Forums - The Unofficial Calgary Flames Fan Community > Main Forums > The Off Topic Forum > Tech Talk
Register Forum Rules FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread
Old 01-26-2010, 06:37 PM   #1
Rifleman
Powerplay Quarterback
 
Rifleman's Avatar
 
Join Date: Apr 2006
Exp:
Thumbs down Does PHP Suddenly Stop Working?

Hi gang,

Long story short:

Recently, one of my clients moved domain registrars, from Netfirms to Godaddy. The website itself, remains on my own server.

On her website, I have a contact form, which lets people give her feedback and hit a submit button. It was working fine until a few days ago. Now it just refuses to send anything to the email address when you hit submit.

I got her to move from Netfirms to Godaddy because there were a few problems with Netfirms and their ip masking. My server has a funky address like 64.45.136.187 and people generally would rather see www.mycompany.com than those funky numbers. Because Netfirms could not mask a domain with funky numbers, I moved it to Godaddy, which has not given me these problems with other clients.

Can a PHP file suddenly not work? It is a simple php feedback mailer form called companyfeedbackmailer.php and the code is this:

Quote:
<body bgcolor="#FFFFFF">
<?php
if(isset($_POST['submit'])) {

$to = "bertha@highcaloriecakes.com";
$subject = "From highcaloriecakes Website Feedback";
$name_field = $_POST['name'];
$phone_field = $_POST['phone'];
$email_field = $_POST['email'];
$message = $_POST['message'];

$body = "From: $name_field\n Phone: $phone_field\n E-Mail: $email_field\n Message:\n $message";

echo "Thank you for your feedback! Your query has been submitted.";
mail($to, $subject, $body);

} else {

echo "thankyou!";

}
?>
__________________

Rifleman is offline   Reply With Quote
Old 01-26-2010, 07:33 PM   #2
cSpooge
Scoring Winger
 
cSpooge's Avatar
 
Join Date: Jan 2006
Exp:
Default

does godaddy support php? that is the only reason I could think of.
cSpooge is offline   Reply With Quote
Old 01-26-2010, 09:29 PM   #3
Barnes
Franchise Player
 
Barnes's Avatar
 
Join Date: Aug 2005
Location: Violating Copyrights
Exp:
Default

^^Is that the real address? I can't get to that website so the DNS probably hasn't updated.
Barnes is online now   Reply With Quote
Old 01-27-2010, 01:43 AM   #4
flamesfan6
First Line Centre
 
flamesfan6's Avatar
 
Join Date: Mar 2006
Location: Victoria
Exp:
Default

the PHP.ini file for the server (godaddy) probably does not have the SMTP/email servers correct, i'd recommend contacting godaddy with this question.
flamesfan6 is offline   Reply With Quote
Old 01-27-2010, 01:57 AM   #5
HOOT
Franchise Player
 
HOOT's Avatar
 
Join Date: May 2006
Location: @HOOT250
Exp:
Default

I'll jealous I wish I knew more about php/MySQL. I'd spend a lot of time building a crazy stat page for all my work I do with the standings and other numbers.
__________________
Quote:
Originally Posted by henriksedin33 View Post
Not at all, as I've said, I would rather start with LA over any of the other WC playoff teams. Bunch of underachievers who look good on paper but don't even deserve to be in the playoffs.
HOOT is offline   Reply With Quote
Old 01-27-2010, 08:36 AM   #6
dobbles
addition by subtraction
 
Join Date: Feb 2008
Location: Tulsa, OK
Exp:
Default

Quote:
Originally Posted by flamesfan6 View Post
the PHP.ini file for the server (godaddy) probably does not have the SMTP/email servers correct, i'd recommend contacting godaddy with this question.
yeah, but the OP said he is the one hosting the content and godaddy is just used for domain registration. so assuming he didn't randomly change his own php config, that wouldn't make sense.

or am i misunderstanding something?
__________________
Quote:
Originally Posted by New Era View Post
This individual is not affluent and more of a member of that shrinking middle class. It is likely the individual does not have a high paying job, is limited on benefits, and has to make due with those benefits provided by employer.
dobbles is offline   Reply With Quote
Old 01-27-2010, 01:04 PM   #7
Rifleman
Powerplay Quarterback
 
Rifleman's Avatar
 
Join Date: Apr 2006
Exp:
Default

No, that's not the real address. Were you hoping for high calorie cakes?

I am at a loss. Sometimes this form seems to work, and other times, it does nothing.

The domain name registrar is at GoDaddy, but I use Canaca for the hosting of the website itself. The client's email is also handled by GoDaddy.

GoDaddy's email servers have been known to be pretty aggressive in rooting out spammers, so my first thought was they were blocking email being sent from the php file at 64.45.136.187.

But then I tested it this morning, and everything was working fine. So why would the PHP file suddenly stop working, then start working again?
__________________

Rifleman is offline   Reply With Quote
Old 01-28-2010, 12:23 PM   #8
Rifleman
Powerplay Quarterback
 
Rifleman's Avatar
 
Join Date: Apr 2006
Exp:
Default

Ok, I think I know what is causing it!

When I go to the contact form and send it, it works fine, but then when I hit the back button and type a different message to send, it doesn't work.

I think somehow when you hit the back button, the PHP script is not reloading, and therefore does not send it because it just executed the same command?

Going to the address bar and typing the address of the contact form, and then filling in the form, and pressing submit again, works.
__________________

Rifleman is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 12:30 PM.

Calgary Flames
2024-25




Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright Calgarypuck 2021 | See Our Privacy Policy