I have attached a project that contains 5 pages.
Pages 1 and 3 contain just text. Pages 2 and 4 each contain 2 Input Boxes for the user to type in answers to questions.
Input1, Input2, Input3 and Input4
The input is stored in AutoPlay\\Docs
InputText1.txt, InputText2txt, InputText3txt and InputText4txt respectively.
The user can quit the application, come back and amend their input at any time.
When they are happy, the user is to go to Page 5 where there is a Submit Button.
On Click, I want this submit Button to aggregate the data from:
InputText1, InputText2, InputText3 and InputText4
and send it by email to biz@karazoo.com so I receive an email with the body of that email consisting of the four text inputs in the right order:
Input1
Input2
Input3
Input4
On my web server, I have a php script at www.karazoo.com/sendmail.php with the following content:
<?php
$mail_to = $_REQUEST['mail_to'];
$subject = $_REQUEST['subject'];
$message = $_REQUEST['message'];
$mail_from = $_REQUEST['mail_from'];
$reply_to = $_REQUEST['reply_to'];
$headers = "From: $mail_from\r\n";
$headers .= "Reply-To: $reply_to\r\n";
$headers .= "Content-type: text/plain; charset=iso-8859-1\r\n";
$headers .= "Content-Transfer-Encoding: 7bit\r\n";
mail(
$mail_to,
$subject,
$message,
$headers
);
?>
However, as I am a novice, I have gone as far as I can, drawing from examples and forum posts and am stuck with knowing what code to put on the On Click event of the button on Page 5 to cause me to get the email.
I am also not quite sure that the php script is totally right.
The application is to have about 60 pages with inputs, so I have deliberately included the two pages in the example so I can see how you do it. Then I can add pages and inputs without needing further help.
I think, and hope, that this may be a really good example to post in the examples forum if we could get it to work, because it would be a standard muti-form survey type application.
But maybe I am just assuaging my guilt at needing to publish such a long and demanding post.

