• 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: PHP script

PHP script 2 months 1 week ago #43266

I would like those who register to be forced to enter specific letters and numbers to which 4 other numbers can be associated in order to send.
In my case the fixed part should be ML24 and then 4 different numbers for each account, because it is the membership number of an association for the current year
This is the page in question. The field is tessera.
associazionelymeitalia.org/registrazione...razione-account-soci
Thanks
The administrator has disabled public write access.

PHP script 2 months 1 week ago #43269

  • iceferret
  • iceferret's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 216
  • Thank you received: 57
Firstly is the membership number stored in the joomla database as ML241234 for example?

Two ways of doing this. Firstly a simple form where the user enters their member number which is then passed to the main form. Here you can use some simple php code on form pre process to run a query to check the entered number and if it exists continue or send to an error page if it's wrong.
Alternatively you could use a combination of Javascript to make an AJAX call to the database and check th entry in real time which is neater but more complex to get right.

Either way depends on the number being stored.
If you can keep your head when all about you are losing theirs, then you obviously don't understand the situation!
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!