31 Posts
shellok
7 years ago
15
Topic

Good afternoon colleagues. Using button free want to pass variables to the next page. When used in variable symbols "? & =" , if you pass in the address string is encoding, how to fix it, please help?

want                          x1=1&x2=1&x3=2 ,

and get another        x%3D1%26x1%3D1%26x2%3D1%26x3%3D1

Please HELP!

Any thoughts in the right direction

Get a Book for SEBLOD
31 Posts
shellok
7 years ago
0
Level 1

While at random found out that if you direct to record Custom Variables x1=1&x2=1&x3=2 then transcoding is not happening. That is, a recoding if the field is populated dynamically from a sql tool to insert Custom Variables: $CCK->getvalue('xgroup). Digging further, looking for Your help . Help pliz!

31 Posts
shellok
7 years ago
2
Level 1

Made various options. Almost have no doubt that the problem in seblod API or the database encoding . Please help!

4229 Posts
Kadministrator
7 years ago
1
Level 2

Is this a problem with multistage form? Then see this tutorial

31 Posts
shellok
7 years ago
0
Level 3

This is not a multi-step form... There is a field in the usual form which should use the value from the url. But it does not see the value since free button sends the value coded on the previous page. let me know how I can explain better. I really need help

31 Posts
shellok
7 years ago
0
Level 1

I think that Custom Variables takes the value from the database and encodes it. Can't find what is the file.

31 Posts
shellok
7 years ago
0
Level 1

Most likely this is due to the function urlencode. Now I would like to understand how to disable or fix for custom variables (button free)

31 Posts
shellok
7 years ago
8
Level 1

if the data is entered by hand - coding will not be.... what to do? how do I fix my API

4229 Posts
Kadministrator
7 years ago
7
Level 2

So, where are you trying to pass this variables FROM? You can't use $cck->getValue in the form.

31 Posts
shellok
7 years ago
6
Level 3

Thank you for trying to help. I added the free button and it custom ordered variables $cck->getValue("field") . The value in the database for field = x1=1&x2=2 . When saving get encoded value of the url?%20x%3D1%26x2%3D2 . I need to get the url?x1=1&x2=2. I hope you can help me

4229 Posts
Kadministrator
7 years ago
5
Level 4

Yes, but where did you place this button (on which view - content, form, list etc? ) I'm asking as getting values from other fields only works in content and list/item views and can't be used directly on the form.

31 Posts
shellok
7 years ago
4
Level 5

button free in the list team, if onclick go to the > form

4229 Posts
Kadministrator
7 years ago
3
Level 6

Ok, now it is clear what your problem is. You can't take the whole url from one field as you figured out correctly,text values are url encoded for security purposes. You would need to put something like x1=$cck->getValue(field1)&x2=$cck->getValue(field2) in custom variables (and have values, not the whole url, stored in separate fields)

31 Posts
shellok
7 years ago
2
Level 7
Is there a solution to bypass the encoding. I have over 200 fields. I have them in the previous step are merged into one. There is no need to store them in the database separately... Please any solutions, I need Your help 
4229 Posts
Kadministrator
7 years ago
1
Level 8

That would require changing of the code probably

31 Posts
shellok
7 years ago
0
Level 9

I think that this fix can improve many projects. I think that if you add an exception, the characters "= and & " won't break security. Help to find the file that handles the encoding custom variables for free button

Get a VIP membership