I am putting together a web-site of many items for hire.
The dates and times and emails etc I have dealt with by a chronoform.
But now I have a catalogue with text and pictures and I want to put a button by each item saying 'Hire Me'. As a novice the solution that occurred to me was to put a small form with a hidden input with the stock-number of the item by each item with the submit button saying 'Hire Me', and deal with it with a PHP script. I want ten of these per page and about 30 such pages=300 'small forms'.
(Is there a better way of doing this?)
When I put ten forms differing only in their hidden input value but all having the same ID then (of course) it doesn't work.
question 1.
Does it make any sense to use a tiny chronoform for this or is it 'overkill'. Chronoforms provides a 'copy' facility.
I tried putting ten little simple HTML forms then using Javascript with the DOM to change all their IDs to sequential values 'form_1' 'form_2' etc. But this was no better.
As a novice when something does not work I don't know if it is wrong in principle or whether there is a typo or something (such as 'domready') is missing.
Question 2
What differences should I make between one form and the next for them to work in the same article ?
I tried making the whole page as one form and just having ten different submit buttons ! but I have not workout how to handle that in a PHP script!.
Any advice or help is welcome.
--
Dave
The dates and times and emails etc I have dealt with by a chronoform.
But now I have a catalogue with text and pictures and I want to put a button by each item saying 'Hire Me'. As a novice the solution that occurred to me was to put a small form with a hidden input with the stock-number of the item by each item with the submit button saying 'Hire Me', and deal with it with a PHP script. I want ten of these per page and about 30 such pages=300 'small forms'.
(Is there a better way of doing this?)
When I put ten forms differing only in their hidden input value but all having the same ID then (of course) it doesn't work.
question 1.
Does it make any sense to use a tiny chronoform for this or is it 'overkill'. Chronoforms provides a 'copy' facility.
I tried putting ten little simple HTML forms then using Javascript with the DOM to change all their IDs to sequential values 'form_1' 'form_2' etc. But this was no better.
As a novice when something does not work I don't know if it is wrong in principle or whether there is a typo or something (such as 'domready') is missing.
Question 2
What differences should I make between one form and the next for them to work in the same article ?
I tried making the whole page as one form and just having ten different submit buttons ! but I have not workout how to handle that in a PHP script!.
Any advice or help is welcome.
--
Dave