All pastes #634948 Raw Edit

Someone

public php v1 · immutable
#634948 ·published 2007-07-26 19:18 UTC
rendered paste body
<?php	$commentName = $_POST['name'];	$commentEmail = $_POST['email'];	$commentText = $_POST['comments'];		$commentName = htmlspecialchars($commentName);	$commentEmail = htmlspecialchars($commentEmail);		$commentText = strip_tags($commentText);		$sendTo = "sri@epicsoftware.com";		$subject = "Calfee Welding Comment: $commentName";		$headers = 'From: ' . $commentName . ' <' . $commentEmail . '>';		mail($sendTo, $subject, $commentText, $headers) or header( 'Location: ./?page_name=comment_err');	header( 'Location: ./?page_name=comment_conf');?>