11 years ago
2
Topic

Please,


I need to create one form where when the user click in the button SUBMIT, execute one command in PHP for changed your GROUP.


I ready doing script:

$db = JFactory::getDBO();
$query = 'SELECT userid FROM  mv478_session WHERE client_id=0';
$db->setQuery($query);
$nome_sess = $db->loadResult();
$query = 'INSERT INTO #__user_usergroup_map VALUES ('.$nome_sess.', 13)' ;
$db->setQuery($query);


This query adition for user, but of REGISTED, a group that I create whit name GAss. 


My problem is with the EXECUTED this query when the USER clicked that button SUBMIT that my Form created on SEBLOD.


Please, help.

Thanks


Get a VIP membership
11 years ago
1
Level 1

Hi Lamech,

This pack of products is certainly your solution http://www.seblod.com/products/1854

Regards.

11 years ago
0
Level 2

Ops, thanks BES. It's helped me in other things, thank you.

With regard to what passed me, if I add a routine, any button you create will have her. I just wanted the PHP script to only one specific form.

To understand better. see:
"In the field of creation of form in SEBLOD, has a field to add JAVASCRIPT, abaxido field in STORAGE STUFF. There can edit some things."

There is a field for those PHP, or a plugin that vasão of it?
On the information you gave me, I can do this?

Thank you very much.



Get a VIP membership