PHP form problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
roggo
Forum Newbie
Posts: 1
Joined: Fri Mar 19, 2004 7:15 am

PHP form problem

Post by roggo »

Hi, I'm currently running PHP locally on my machine under Windows XP Home. I recently tried to make a PHP form handler script, but it said that there was an error on Line X (X being the line containing my email details), thinking that the script was erroneous, i found another, but when i came to use it, the same error appeared, again on the line containing my email info. It said "Warning: Failed to Connect in c:\apache\htdocs\form.php on line X". I am not sure why it is doing this, but i believe it may have something to do with me running the program locally, instead of in a web server environment.

Any help would be greatly appreciated
Many Thanks
Roggo :D
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post by markl999 »

The full error and the line that's causing it (and a couple of lines above and below it) would help ... even the whole script if it's not too big :o
TheBentinel.com
Forum Contributor
Posts: 282
Joined: Wed Mar 10, 2004 1:52 pm
Location: Columbus, Ohio

Post by TheBentinel.com »

markl999 wrote:The full error and the line that's causing it (and a couple of lines above and below it) would help ... even the whole script if it's not too big :o
Agreed, send the message and the code.

To send mail, you'll need to name your SMTP server, so that may be what it's not connecting to.
Post Reply