• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Can I get script results in the email?

Can I get script results in the email? 17 years 4 months ago #1491

I have this in the \"Script called on form process\" box

$result = 0;
$beginner = \"1 Right\";
$elementary =\"2 Right\";
$preintermediate =\"3 Right\";
$intermediate =\"4 Right\";
$upperintermediate =\"5 Right\";
$advanced =\"6 Right\";

if ($question1 == \"right\"){$result++;}
if ($question2 == \"right\"){$result++;}
if ($question3 == \"right\"){$result++;}
if ($question4 == \"right\"){$result++;}

if ($result = 1){$message = $beginner; $level = \"1 Right\";}
if ($result = 2){$message = $beginner; $level = \"2 Right\";}
if ($result = 3){$message = $beginner; $level = \"3 Right\";}
if ($result = 4){$message = $beginner; $level = \"4 Right\";}

And the Email I'd like to have the subject as {$level} and the body of the message:

Dear {firstname},

Thank you for taking our test. Your level is {$level}. {$message}

Best regards,

But obviously it's sending the word {$level} and {$message} in the text. Is there any way to pull this information into the email or do I have to put something into the form process script to send the mail out?

Thanks
Stephen

PS: This is my first post and the form creator is fantastic, really easy to use!
The administrator has disabled public write access.

Re:Can I get script results in the email? 17 years 4 months ago #1539

lol
High Stephen,
don
The administrator has disabled public write access.

Re:Can I get script results in the email? 17 years 4 months ago #1553

Lol Kurt,

I
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!