0

I have a php page that displays records from a sql database. Each record is in a repeat region and has a submit form nect to it.

The problem is if I submit one of the forms below the first in the list, the first form is validated and the following error is displayed:

Cannot redeclare process_form() (previously declared

Is it possible to dynamically name the process so that it is different for each record?

3
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by diafol
0

You have three main options, I can think of, in setting up such a script:
1. One form processes all records (including repeats) and process_form() handles all of this.
2. A form for each record set and process_form() only handles that record set. (You can then redisplay the form with all the repeats reloaded, so they can be changed).
3. AJAX.
Let me know which you would like to achieve and I'll try to help.
Ash

0

Hi Ash

Which of these is best to use?

Am quite interested in the AJAX solution if you have an example.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.