How to resolve math questions?

piotr

Client
Регистрация
31.01.2011
Сообщения
23
Благодарностей
0
Баллы
0
Hello.
Another small problem which is huge for me :-)
If i have math question on registration page, how i can calculate them and print results to defined field?
I have something like 4+5=[field] where digits are random every time
So i need to use branch builder for sure to get this data every time, but how to calculate it? Is there any simple way to perform that task?

Thank you.
 

LightWood

Moderator
Регистрация
04.11.2010
Сообщения
2 382
Благодарностей
917
Баллы
113
You must spars math questions in the source code and past result in (Set - logical operation).
ZP.png
 
Последнее редактирование:

piotr

Client
Регистрация
31.01.2011
Сообщения
23
Благодарностей
0
Баллы
0
Thank you for answer.
Could you, please post simple few steps how to do it on this example:
Код:
http://moviepals.org/user/register
this could help me understand how it works as i'm trying to figure this website out right now.
thx.
 

piotr

Client
Регистрация
31.01.2011
Сообщения
23
Благодарностей
0
Баллы
0
Thanks alot mate. Ure life saver :-)
 

rolton88

Client
Регистрация
13.04.2010
Сообщения
74
Благодарностей
2
Баллы
8
Try this :-)
 

Вложения

piotr

Client
Регистрация
31.01.2011
Сообщения
23
Благодарностей
0
Баллы
0
Thank you very much!
Just to clarify -
I have to take html element, build regular exp with it and the put it to macro "js execute" which will calculate it for me?
Will it work with diffrent math questions like subtraction, multiplication and division?
 

LightWood

Moderator
Регистрация
04.11.2010
Сообщения
2 382
Благодарностей
917
Баллы
113
Hi, I did short version.
U should't use the macro "js execute".
See my example.
Ofcourse u can use diffrent math questions. Example:
10-5
10/5
10*5
 

Вложения

piotr

Client
Регистрация
31.01.2011
Сообщения
23
Благодарностей
0
Баллы
0
Thank you, i think i got it :D
One thing annoys me right now, as seen in ur example, why is always unsucessfull exit from this logic branch? It works awsome but im curious why is that.
 

LightWood

Moderator
Регистрация
04.11.2010
Сообщения
2 382
Благодарностей
917
Баллы
113

piotr

Client
Регистрация
31.01.2011
Сообщения
23
Благодарностей
0
Баллы
0
Great, thank you for your time LightWood and rolton88. Hope this will help future users as well.
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)