
May 30th, 2002, 11:45 AM
|
|
|
|
Join Date: Apr 2007
Location: Perth, Australia
Posts: 221
Time spent in forums: < 1 sec
Reputation Power: 2
|
|
|
mail() script problem
Hey folks, i'm having trouble with my feedback form thing, this is my script
php Code:
Original
- php Code |
|
|
|
<?php $var1 = {$_POST['topic']}; $var2 = {$_POST['message']}; $var3 = {$_POST['name']}; $to = '"Admin" <me@mydomain.net>'; $from = 'From: "$var3" <me@mydomain.com>'; $subject = '$var1'; $message = '$var2'; mail($to, $subject, $message, $from); echo 'Feedback Sent <a href="index.php">Return to Site</a>'; ?>
this works if there are no variables used, but as soon as i throw in some variables from the previous page it gives me a parse error, any suggestions?
|