Click Here to Login
Join Computer forums Today

Thread: action=mailto:
View Single Post
Old 12-24-2006, 07:24 AM   #29
In Runtime
jamieoliver22's Avatar
Join Date: Apr 2004
Posts: 245
Default Re: action=mailto:

The subject should be what is inputted into the subject text box. You will get the no body error if nothing is entered, I think.

This isn't the most foolproof method btw, the mySQL method is a lot better IMO. But that takes lots more coding and stuff.

Also, for a better method, add this to the top of that php on contact2.php:

PHP Code:
$name htmlentities($_POST['name']);
$email htmlentities($_POST['email']);
$phone htmlentities($_POST['phone]);
$message = htmlentities($_POST['
And edit:
PHP Code:
$mailsubj "$subject\n"
PHP Code:
$mailsubj "From: $name\n"
Desktop: AMD Athlon XP 2000+ - 1.6ghz | MSI KT4-Ultra Motherboard |ATI Radeon Powercolor x850 XT 256mb DDR3 | 400gb HDD space |1gb PC2700 DDR SDRAM.
Laptop: AMD Sempron 3200+ - 1.6ghz | ATI Radeon Xpress 1100 - 128mb | 100gb PATA HDD | 1gb DDR2 RAM.
jamieoliver22 is offline   Reply With Quote

All times are GMT -5. The time now is 12:46 AM.

Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2018, vBulletin Solutions, Inc.