• 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: Gender specific "thank you" message

Gender specific "thank you" message 12 years 1 month ago #22506

Hello! Hope you can help me with this question of mine

I run a site ( www.dramaverk.net/index.php/tilmelding2 ) and in there people can sign up for a course.

When it comes to after the point of submitting the form and displaying the "Thank you" message on the website I want the message to be dependent on the gender. In Faroese the "Dear" in "Dear <client>, we have received your application" is dependent of male and female, sort of like the German language. As an example When saying "dear John", it's "Góði John", but when it is a woman then it is "Dear Joanne" -> "Góða Joanne". Mind the difference being an ending with "a" and "i".

This is what I have done this far, but it doesn't show up after pressing the "Send" button. Only a "Continue" button displays on the next page.
if($_POST['form']['kyn'] == 'M')
   $thankYouMessage .= 'Góði {navn:value}, takk fyri tygara tilmelding. Vit venda aftur sum skjótast.';
else
   $thankYouMessage .= 'Góða {navn:value}, takk fyri tygara tilmelding. Vit venda aftur sum skjótast.';

Any idea?

Additional help and info:
kyn is sex
M is for male
navn is name

The person signing up has to choose gender (either M for male or K for female) by pressing either of two radio buttons labeled M and K. My idea with the script above was to only display a specific message if a user has chosen M, and if that isn't chosen, then the female gender specific thank you message.
I got the original code from www.rsjoomla.com/support/documentation/v...602-php-scripts.html but I don't know anything about php programming :(
Last Edit: 12 years 1 month ago by muldvarpe.
The administrator has disabled public write access.

Gender specific "thank you" message 12 years 1 month ago #22522

Anyone?
The administrator has disabled public write access.

Gender specific "thank you" message 12 years 1 month ago #22523

  • octavian
  • octavian's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 783
  • Thank you received: 110
Wouldn't it be easier to setup your Radio Group like this:
Góði|M
Góða|F

and then use this in your Thank You Page:
{kyn:value} {navn:value}, takk fyri tygara tilmelding. Vit venda aftur sum skjótast.

It would make unnecessary all the PHP coding.
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
Last Edit: 12 years 1 month ago by octavian.
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!