A
A
afonin_vlad2018-06-21 18:06:43
opencart
afonin_vlad, 2018-06-21 18:06:43

How to generate different function names?

Good day! The question is the following: in the module on Opencart there is a function responsible for submitting the form. But if you create more than one form on the page, then several such functions are created, that is, 3 forms - 3 functions with the same name. Is it realistic to write code that will generate different function names - like Submitform-1, Submitform-2, Submitform-3?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yan-s, 2018-06-21
@Yan-s

Can. But it is obviously a crooked solution.
As well as duplication of functions when inserting forms. There should be 1 code responsible for sending any number of forms.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question