html and php form issues
Posted: Tue Oct 07, 2008 2:58 pm
I am having trouble writing a simple script that will email me and the commenter the contents of their comment. Right now it looks like
the error involves a "T_VARIABLE" on line 7
I'm sure its something blatantly obvious...
Code: Select all
<?php
$name = $_REQUEST['name'] ;
$email = $_REQUEST['email'] ;
$comment = $_REQUEST['comment'] ;
$subject = 'a comment for you' ;
$content = 'Comment:' ."\n" .$comment.
.'From,' ."\n"
.$name. ;
$subject2 = 'Comment Confirmation' ;
$content2 = 'Please do not reply. This is an automated comment confirmation send by http://www.sobellium.com.' ."\n" ."\n"
.$comment.
.'From,' ."/n"
.$name. ;
mail( 'zach@sobell.com', $subject, $content, "From: $email") ;
mail( $email, $subject2, $content2, "From: 'sobellium.com'") ;
header( "Location: http://www.sobellium.com/contact" ) ;
?>I'm sure its something blatantly obvious...