jtb
10-06-2003, 03:46 PM
Hi Everybody,
I have a problem in my feedback form
I got a feedback form sample FLA from the web which has the following text fields. Subject, Message and Email. And the PHP script to which this file passes the variables is
<?php
mail("mymail@server.com", $subject, $message, "From: PHPMailer\nReply-To: $from\nX-Mailer: PHP/" . phpversion());
?>
This seems to be working in my server.
But the problem is I have a different set of text fields in my feedback form as below.
Name, Address, Age, Sex, Phone, Email. I modified the above PHP script as
<?php
mail("mymail@server.com", $name, $address, $age, $sex,"$phone, $email, From: PHPMailer\nReply-To: $from\nX-Mailer: PHP/" . phpversion());
?>
This is not working.
Is there any problem in the way I modified the PHP script? If yes can anyone give me the PHP script for the above one.
I am a non programmer and I feel very difficult to do this simple PHP scripting.
Can anybody help me to solve this problem?
Thanks in advance,
JTB
I have a problem in my feedback form
I got a feedback form sample FLA from the web which has the following text fields. Subject, Message and Email. And the PHP script to which this file passes the variables is
<?php
mail("mymail@server.com", $subject, $message, "From: PHPMailer\nReply-To: $from\nX-Mailer: PHP/" . phpversion());
?>
This seems to be working in my server.
But the problem is I have a different set of text fields in my feedback form as below.
Name, Address, Age, Sex, Phone, Email. I modified the above PHP script as
<?php
mail("mymail@server.com", $name, $address, $age, $sex,"$phone, $email, From: PHPMailer\nReply-To: $from\nX-Mailer: PHP/" . phpversion());
?>
This is not working.
Is there any problem in the way I modified the PHP script? If yes can anyone give me the PHP script for the above one.
I am a non programmer and I feel very difficult to do this simple PHP scripting.
Can anybody help me to solve this problem?
Thanks in advance,
JTB