• 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: Récupération : $mavariable = {Email:value} ???!

Récupération : $mavariable = {Email:value} ???! 12 years 7 months ago #19035

In a form RSFORMS PRO, I add a small script to prevent the user fills too many times the request form. Thanks a cookie has 48 hours, so $ FormLayout if the cookie is present then go to a page 'already filled'

What I want is to understand how the recovered variable {Email: value} to execute downright verifiacation if one is not already present email in the database table.

but:
$pseudo = {Email:value} does not work obviously.

Is it possible?
Last Edit: 12 years 7 months ago by alexp.
The administrator has disabled public write access.

Re: Récupération : $mavariable = {Email:value} ???! 12 years 7 months ago #19046

  • adrianp
  • adrianp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 631
  • Thank you received: 146
Hello,

This is possible but advanced PHP scripting will be required. Steps that you would need to take:

- within the PHP Scritps > Scritps called after form process area, set your cookie to contain the submission id. You can use the $SubmissionId variable.

- within the PHP Scripts > Scripts called on form display area you will need to verify if the cookie variable exists or not. If it does, extract the submitted information directly from the database, based on the submission id - thus you will have access to the submitted information.

- alter the $formLayout variable (available within Scripts called on form display area) with a message of your choice.
This is not official customer support. To receive your support, submit a support ticket here.
Last Edit: 12 years 7 months ago by adrianp.
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!