Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
My PHP Form Just Stopped working one day
Old 11-06-2010, 08:40 PM My PHP Form Just Stopped working one day
Novice Talker

Posts: 6
Trades: 0
I use go daddy as a host....

here is my siteGet Paid For Online Surveys

You will notice i have a form at the top to capture an email and name.....here is the posting .php file
PHP Code:
<?php

$name 
$_REQUEST['name']; 
$email $_REQUEST['email']; 
$paidsurveys $_REQUEST['paidsurveys']; 
$mysteryshopping $_REQUEST['mysteryshopping']; 
$incentives $_REQUEST['incentives'];
$focusgroups $_REQUEST['focusgroups'];


$to "info@takesurveysonlinegetpaid.com";
$from "$email";

$subject "Web Lead";

$body "

Name: 
$name

Email: 
$email

Paid Surveys: 
$paidsurveys
Mystery Shopping: 
$mysteryshopping
Incentives: 
$incentives
Focus Groups: 
$focusgroups

"
;

$headers "From: $email";

mail ($to$subject$body$headers);

header ("Location: http://www.takesurveysonlinegetpaid.com/take-paid-online-surveys");

?>
Everything was flawless up until 2 days ago...now no emails get sent....except today I finally got 1 to go through..

I really am at my wits end. any advice?

Last edited by chrishirst; 11-07-2010 at 07:40 AM..
enigma104 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-07-2010, 06:23 AM Re: My PHP Form Just Stopped working one day
shivaji's Avatar
Ultra Talker

Posts: 321
Trades: 0
I don't see any mistake. Did you get any error report. Only what I can suggest is little bit different system of coding. I have some problems when I use variable inside double quotes. For example:
Quote:
$name ="shivaji";
myName = "My name is $name and surname is disabled";
The better way is:
Quote:
$name ="shivaji";
myName = "My name is" . $name . "and surname is disabled";
__________________

Please login or register to view this content. Registration is FREE
- uncommon free scripts

Please login or register to view this content. Registration is FREE
- Städte, Sport, Party, Gourment, Apartments, Hotels
shivaji is offline
Reply With Quote
View Public Profile Visit shivaji's homepage!
 
Old 11-07-2010, 07:49 AM Re: My PHP Form Just Stopped working one day
NullPointer's Avatar
Will Code for Food

Posts: 2,815
Name: Matt
Location: Irvine, CA
Trades: 0
Quote:
Originally Posted by shivaji View Post
Only what I can suggest is little bit different system of coding. I have some problems when I use variable inside double quotes. For example:
There is absolutely nothing wrong with the chunk of code you 'corrected' (other than you forgot the $ on myName in both cases). What problem did you have with variables in double quotes?

@the OP

I don't see anything wrong with your code or your form that would prevent emails from being sent. Has this problem persisted? Are you certain that the emails aren't being filtered as spam?
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Last edited by NullPointer; 11-07-2010 at 07:50 AM..
NullPointer is online now
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Old 11-07-2010, 08:18 PM Re: My PHP Form Just Stopped working one day
Novice Talker

Posts: 6
Trades: 0
First off, thank you both for your response.....i have tested the form maybe 100 different times...of that only 1 email came through...prior to tuesday I would recieve emails all day from viewers ( however who knows how many never made it)

I am thinking it must be an issue with go daddy, so I called, then "ran their own scripts" and said its not them.....would this code work on php.5.xx thats what my server says is loaded, its also on linux is that helps.

i am really desperate for a fix and designers are quotting me at 50-100 bucks to fix, I hate to pay that when it KNOW the form works! anything else?
enigma104 is offline
Reply With Quote
View Public Profile
 
Old 11-07-2010, 08:34 PM Re: My PHP Form Just Stopped working one day
NullPointer's Avatar
Will Code for Food

Posts: 2,815
Name: Matt
Location: Irvine, CA
Trades: 0
I would test out some other mail scripts. If they work comparing the code might help you resolve the issue.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
NullPointer is online now
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Old 11-07-2010, 08:42 PM Re: My PHP Form Just Stopped working one day
Novice Talker

Posts: 6
Trades: 0
Null thanks for the heads up, listen man, I am in irvine also, you seem to be pretty respected around here, would you be interested in helping me work on this? I will buy ya dinner and throw in like 20 bucks to get it working, I really have no idea how to even start this.
enigma104 is offline
Reply With Quote
View Public Profile
 
Old 11-09-2010, 10:27 AM Re: My PHP Form Just Stopped working one day
shivaji's Avatar
Ultra Talker

Posts: 321
Trades: 0
Quote:
There is absolutely nothing wrong with the chunk of code you 'corrected' (other than you forgot the $ on myName in both cases).
Right, I am forget $, just type feller.

Quote:
What problem did you have with variables in double quotes?
I haven't some example but I find it more faster to put all content in single quotes (especially HTML tags) and separate variables with dots, then write lot of escapes.
__________________

Please login or register to view this content. Registration is FREE
- uncommon free scripts

Please login or register to view this content. Registration is FREE
- Städte, Sport, Party, Gourment, Apartments, Hotels
shivaji is offline
Reply With Quote
View Public Profile Visit shivaji's homepage!
 
Reply     « Reply to My PHP Form Just Stopped working one day
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.80883 seconds with 12 queries