![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
So Fucking Banned
Join Date: Sep 2003
Posts: 1,360
|
![]() Im trying out a new contact form to the one i typically use and im having some issues with it.
This is the code i have in sendmail.php: Code:
<?php $name = $_REQUEST['name'] ; $phone = $_REQUEST['phone'] ; $email = $_REQUEST['email'] ; $summary = $_REQUEST['summary'] ; $from = '[email protected]'; $to = '[email protected]'; $subject = 'Pixel Square Designs'; $message = "$name\n\r$phone\n\r$email\n\r$summary"; $to = '[email protected]'; $header = 'From: '.$from; mail($to, $subject, $summary, $header); header( "Location: submitted.php" ); ?> http://www.pixelsquaredesigns.com/testimonials/ Can anyone see why the form isnt sending out full information, all im getting is the 'comment' section of the actual form itself when hitting submit and confirming tos has been read :/ Have been playing with this for about an hour now and its starting to get annoying ![]() Thanks for any help you can offer. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Oct 2002
Posts: 3,745
|
You're getting "$summary" because that's what you're passing to mail():
mail( $to, $subject, $summary, $header); You intended to mail $message, so replace $summary with $message. You did right by hardcoding both $from and $to. If you had set either $from or $to as tjeir email address while allowing them to affect $message, it works be exploitable by spammers.
__________________
For historical display only. This information is not current: support@bettercgi.com ICQ 7208627 Strongbox - The next generation in site security Throttlebox - The next generation in bandwidth control Clonebox - Backup and disaster recovery on steroids |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
So Fucking Banned
Join Date: Sep 2003
Posts: 1,360
|
Thank you kindly Sir, I knew it had to be something simple, much appreciated
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |