We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Send variant in url | Forum

Damien
Damien Aug 25 '13

Hello everyone!


I have a variant generated by a JS script that I have to send a function($variant) in my "controllers".

I tried with from url:

&variant=$variant

But it does not work!


Anyone know how to do it?


Thank you in advance for your help.

Daisy Team
Daisy Sep 5 '13
Sorry, but it's not quite clear. Could you explain in more details what exactly you want to do?

Anyway, have you tried to use GET parameters?
Damien
Damien Sep 5 '13

Above all, I thank you for yours answer.
To be as explicit as possible, I will detail the method script I utilsé as an image to see it clearer.
To begin, I want to send the result of my variant "$ score" generated from the HTML file directly to my PHP "controllers" linked file.
Then I want to insert this variant in the sql table plugin.
Here are details of the simplified script used:
key plugin: mygame
bol/mygame.php :



bol/mygame_dao.php :




bol/service.php :




controllers/mygame.php :




views/controllers/mygame_index.html :




I will greatly appreciate it if you take the time to help me.

Damien
Damien Sep 11 '13

Hello,

I managed to find my mistake, I made ​​make a mistake on the name of a table field.

sometimes it is very stupid!


Now it remains for me only to find how to communicate variants of HTML to php Controller.

Damien
Damien Sep 11 '13

This is good, I found.

As it was made ​​simple.

Thank you anyway for your help.

It's been a topic more resolved