I have to create 2 kind of forms.
The first one where the administrator assigns a credit to a user; the admin insert the email of the user and the credit to charge:
Client e-mail: textbox
Client Credit: textbox
captcha: imagever
submit button
when the form is sent the credit must be stored/updated in a db table:
user_email (manual inserted in the form it is the same stored in jos_vm_user_info)
user_id (the form has to associate the user_email with the field user_id from jos_vm_user_info)
client_credit (it has to be incremented from the previous value)
In the second one used by clients:
request_price (10,20,30,50)
captcha
submit
the credit must be checked before submit (client_credit) if it is less than the form request price it will abort, if not the credit table will be decreased: client_credit = client_credit - request_price
i tried to do the first one but i have some problem to get values with other joomla db tables like jos_vm_user_info. Also i tried to use the tutorial for saving to the database, but the table is not updatet after the submit. can you help me?
The first one where the administrator assigns a credit to a user; the admin insert the email of the user and the credit to charge:
Client e-mail: textbox
Client Credit: textbox
captcha: imagever
submit button
when the form is sent the credit must be stored/updated in a db table:
user_email (manual inserted in the form it is the same stored in jos_vm_user_info)
user_id (the form has to associate the user_email with the field user_id from jos_vm_user_info)
client_credit (it has to be incremented from the previous value)
In the second one used by clients:
request_price (10,20,30,50)
captcha
submit
the credit must be checked before submit (client_credit) if it is less than the form request price it will abort, if not the credit table will be decreased: client_credit = client_credit - request_price
i tried to do the first one but i have some problem to get values with other joomla db tables like jos_vm_user_info. Also i tried to use the tutorial for saving to the database, but the table is not updatet after the submit. can you help me?