This topic is locked
[SOLVED]

 Multiple checkboxs instead of select list

7/24/2006 3:33:14 AM
PHPRunner General questions
rjks author

Hallo,
I need to use checkboxes instead of the generated lookup wizard multiple selection list.
I have succeeded in replacing the select list with checkboxes and icons but can only use them if I name all checkboxes with the generated value variable. i.e.
<INPUT NAME="value9[]" TYPE="CHECKBOX" VALUE="1">

Option 1<BR>

<INPUT NAME="value9[]" TYPE="CHECKBOX" VALUE="2">

Option 2<BR>

<INPUT NAME="value9[]" TYPE="CHECKBOX" VALUE="3">

Option 3<BR>

<INPUT NAME="value9[]" TYPE="CHECKBOX" VALUE="4">

Option 4<BR>

<INPUT NAME="value9[]" TYPE="CHECKBOX" VALUE="5">

Option 5<BR>

<INPUT NAME="value9[]" TYPE="CHECKBOX" VALUE="6">

Option 6<BR>
This has the same result as a multiple selection list.
Question : How can I find out which varible number to use without first generating the code and checking the POST Varibles? The one needed in this case is variable value9.
editid = 50

aktart =

value2 = 496

value3 = 4

value4 = 1

value5 = 77.00

value6 = 7

value9 = Array

value7 = 3

type8 = file0

MAX_FILE_SIZE = 1073741824

value14 =

value15 = 2006-07-24 08:56:13

value16 = robert

type17 = checkbox

value11 =

value12 =

submit1 = Speichern

a = edited

imagefield =
Robert

rjks author 7/24/2006

Hello,
mabe you´ve missed the Question, if so here it is again!
Question : How can I find out which varible number to use without first generating the code and checking the POST Varibles? The one needed in this case is variable value9.
Thankx
Robert

Alexey admin 7/25/2006

Robert,
proceed to the Formatting tab in PHPRunner and calculate the zero-based index of your field as it appears there.
This is the number you need.

rjks author 7/25/2006

Robert,

proceed to the Formatting tab in PHPRunner and calculate the zero-based index of your field as it appears there.
This is the number you need.


Hallo Alexey,
thanks for the tip, I checked the formatting and compared the post results with an edited element, the result is that the values don´t seem to corrispond exactly with the field number, here an example with the format page the edit page and the resulting post values.
Does this mean that the field counting starts with 1 and when a auto increament field is active that field number is excluded?





Post Variables :
editid = 57

aktart =

value2 = 496

value3 = 3

value4 = 2

value5 = 22.00

value6 = 2

value9 = Array

value7 = 2

type8 = file0

MAX_FILE_SIZE = 1073741824

value14 = HS 192

value15 = 2006-07-25 17:54:05

value16 = robert

type17 = checkbox

value11 =

value12 =

submit1 = Speichern

a = edited

imagefield =

Alexey admin 7/26/2006

Robert,
I'm sorry, indexes start with 1, not 0

rjks author 7/27/2006

Robert,

I'm sorry, indexes start with 1, not 0


Hallo Alexey,
thankx for the info again, I thought so.
The board is really good and phprunner is proving to be a real benefit, I am looking forward to the new Version with its wysiwyg editor.
Keep up the good work!
Robert