Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Old 08-24-2009, 02:59 PM   #1 (permalink)
v7n Mentor
 
Calisonder's Avatar
 
Join Date: 10-13-03
Location: Dallas, Texas, U.S.A.
Posts: 1,500
iTrader: 0 / 0%
Latest Blog:
None

Calisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really nice
Send a message via AIM to Calisonder
Any Suggestions On how to get this script to work?

Hi,


I'm not a coder but I have a simple PHP script that I always use in my contact forms on websites. I usually use godaddy servers which have PHP Version 5.2.5 installed and the script works fine.

Unfortunately, the site I am working on is hosted by yahoo and the PHP Version on their servers is Version 4.3.11. The script does not work on there servers, and PHP is enabled. I tested the website I am working on on my own Godaddy servers and the the form works fine, but once I upload it to the yahoo servers it does not work.

Is the code I'm using written in a newer version of PHP which won't allow it to work on Yahoo servers? Thats the only thing I can think of. If so, can someone give me some hints on how to modify the code to work on those yahoo servers.

Thanks to everyone in advance.

Code:
<?php /* Flash Mail Form */ // Create local PHP variables from the info the user gave in the Flash form $senderName = $_POST['userName']; $senderEmail = $_POST['userEmail']; $senderPhone = $_POST['userPhone']; $senderAddress = $_POST['userAddress']; $senderMessage = $_POST['userMsg']; // Strip slashes on the Local variables $senderName = stripslashes($senderName); $senderEmail = stripslashes($senderEmail); $senderPhone = stripslashes($senderPhone); $senderAddress = stripslashes($senderAddress); $senderMessage = stripslashes($senderMessage); $to = "info@5twelvedesign.com"; // Place sender Email address here $from = "$senderEmail "; $subject = "Contact from your site"; //Begin HTML Email Message $message = <<<EOF <html> <body bgcolor="#FFFFFF"> <b>Name</b> = $senderName<br /><br /> <b>Email</b> = <a href="mailto:$senderEmail">$senderEmail</a><br /><br /> <b>Phone Number</b> = $senderPhone<br /><br /> <b>Address</b> = $senderAddress<br /><br /> <b>Message</b> = $senderMessage<br /> </body> </html> EOF; //end of message $headers = "From: $from\r\n"; $headers .= "Content-type: text/html\r\n"; $to = "$to"; mail($to, $subject, $message, $headers); exit(); ?>
__________________
5Twelve Design

"The music that really turns me on is either running toward God or away from God. Both recognize the pivot, that God is at the center of the jaunt."
::: Bono :::
Calisonder is offline  
Add Post to del.icio.us
Reply With Quote
Old 08-25-2009, 05:05 AM   #2 (permalink)
v7n Mentor
 
Tomassi's Avatar
 
Join Date: 01-26-06
Location: Amsterdam
Posts: 2,496
iTrader: 0 / 0%
Latest Blog:
None

Tomassi is a web professional of the highest orderTomassi is a web professional of the highest orderTomassi is a web professional of the highest orderTomassi is a web professional of the highest orderTomassi is a web professional of the highest orderTomassi is a web professional of the highest orderTomassi is a web professional of the highest orderTomassi is a web professional of the highest orderTomassi is a web professional of the highest orderTomassi is a web professional of the highest orderTomassi is a web professional of the highest order
Send a message via ICQ to Tomassi
Well, I don't see any new stuff that should give problems.
But the bit where the body tag starts should either start with echo or print or a quote.
__________________
I still got me a signature to fill
Tomassi is online now  
Add Post to del.icio.us
Reply With Quote
Old 08-25-2009, 11:51 AM   #3 (permalink)
Junior Member
 
Join Date: 08-23-09
Posts: 3
iTrader: 0 / 0%
Latest Blog:
None

ForumDeluxe is liked by many
Here are some answers I found on another forum:

Quote:
No, it doesn't seem to do anything special. You can try adding this:

php Code:

Quote:
error_reporting(E_ALL);
ini_set('display_errors', 1);
At the top of the file. It may show an error message the next time you execute it so that you know more.
And

Quote:
PHP 5.0.0 been official since 2004, anyone who hasn't moved up from version 4 needs to get with the time, Most host that still have PHP4 already have a PHP5 migration plan in effect (usually by updating an .htaccess, or setting a setting in their hosting account). Yahoo hosting is like their domain registration service, overpriced for what you're actually getting.

PHP4 ended it's updates at 4.4.9 bout a year ago after they fixed all the bugs they were gona fix.
And

Quote:
The only problem by the way that I see with your code is the use of mail() function, which should be PHP4 compatible, but it can break if your hosting provider has disabled sendMail capability (which I'm sure Yahoo did). You would have to end up using something like the PHP4 version of PHPMailer with SMTP capability and log into your own mail server.
__________________
ForumDeluxe.com | Free Forum Software
Come Start Your Own Forum Today For Free!

We Are Now Looking For Several New Staff Members
ForumDeluxe is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Suggestions on a script that includes Billing and a ticket system? hostrea Web Design Lobby 0 03-27-2009 05:46 AM
php login script doesn't work for IE, but fine on ff, chrome, etc.. 2939195631902 Web Design Lobby 6 02-18-2009 09:42 AM
Need a EMAIL Directory Script-Any Suggestions njjacob Web Directory Issues 2 06-10-2007 09:13 PM
Link Directory script needed (suggestions please) DataFeedFile.com Coding Forum 2 09-23-2006 07:53 PM


Sponsor Links
Get exposure! Contextual Links V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 10:51 AM.
© Copyright 2008 V7 Inc
Powered by vBulletin
Copyright © 2000-2009 Jelsoft Enterprises Limited.


Search Engine Optimization by vBSEO 3.3.0 ©2009, Crawlability, Inc.