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.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 03-29-2012, 11:52 AM   #1
Webmaster Advertising
So Fucking Banned
 
Join Date: Sep 2003
Posts: 1,360
Contact Form Help Needed Please

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" );
?>
You can find the form online on this page:

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.
Webmaster Advertising is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-29-2012, 01:48 PM   #2
raymor
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&#64;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
raymor is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-29-2012, 02:20 PM   #3
Webmaster Advertising
So Fucking Banned
 
Join Date: Sep 2003
Posts: 1,360
Thank you kindly Sir, I knew it had to be something simple, much appreciated
Webmaster Advertising is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.