• 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: Insert Thank You Message into PDF

Insert Thank You Message into PDF 12 years 3 months ago #21157

I have a thank you message that varies depending on the score of the user's submission.

The form has multiple radio buttons, that users can optionally check. Each radio button has a value of 1-3.

The selected radio button values are added together, and there are 3 thank you messages. One for 0-25 another for 26-45, and another for 46 and above

What I want to do, is attach the right thank you message into the PDF and the user email. Does anyone have any help for me?

I was just instructed by support to look here:http://www.rsjoomla.com/support/documentation/view-article/777-php-pdf-pre-processing-scripts-.html

but I am not a programming expert and I have no clue what to do with that.

here's my thankyoumessage code:
if($_POST['form']['total2'] >= '45')
   $thankYouMessage .= '<img src="http://sustainnu.greenfiremedia.com/images/wildcat.png" align="left" ><p style="font-size: 20pt; font-weight: bold;">Congratulations!</p><p style="font-size: 14pt; font-weight: bold;">You have earned Wildcat Green!</p><br/>Your score was:'.$_POST['form']['total2'];
elseif($_POST['form']['total2'] >= '21' && $_POST['form']['total2'] <= '44')
   $thankYouMessage .= '<img src="http://sustainnu.greenfiremedia.com/images/bright.jpg" align="left" ><p style="font-size: 14pt; font-weight: bold;">You have earned Bright Green!</p> <br/>Your score was:'.$_POST['form']['total2'];
elseif($_POST['form']['total2'] >= '0' && $_POST['form']['total2'] <= '20')
   $thankYouMessage .= '<img src="http://sustainnu.greenfiremedia.com/images/light.jpg" align="left" ><p style="font-size: 14pt; font-weight: bold;">You have earned Light Green!</p><br/>Your score was: '.$_POST['form']['total2'];
else
   $thankYouMessage .= 'You are not green! Try again.';
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!