The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
I try to determine if a variable is set and if so then the checkbox is selected. I tried it with this code but it dont works, when i execute it then all the checkboxes are checked while only one field is filled with aw so 1 checkbox has 2 be checked instead of all
PHP Code:
PHP Code:
Hope someone can help me out, any help is appreciated. |
#2
|
||||
|
||||
i've laready asked 5 times for this looks like we'll have to wait to v 3 to me
|
#3
|
||||
|
||||
Try this...
PHP Code:
|
#4
|
||||
|
||||
Thanks for the replies
@firefly, that didnt worked. I tried this code and it works now :up: PHP Code:
|
#5
|
||||
|
||||
You need to set a hidden field saying the field WAS there, and then in the parsing if the variable doesn't exists (=checkbox is not checked) remove the row.
|
#6
|
||||
|
||||
Cool, thanks Firefly. I gonna test that out.
Be Right Back |
#7
|
||||
|
||||
i'm going crazy
i'm using the following code: PHP Code:
1. Awards name with the awardsid 9 and aw is also 9 2. Lesane with the awardsid 13 and aw is empty (means not checked) So when i execute the script then i c awards name selected and lesane is not selected and if i check the code by <input type =hidden then i c: <input type='hidden' name='delete[]' value='aw[13]'> so thats right, lesane is not selected and have the id 13. Now i'm totally confused because when i click on submit then it deletes lesane totally and when i uncheck the award with the name "awards name" then that aw is not gonna deleted because only the input type = hidden was lesane So my questions are: Whats the delete query to delete only the aw row from awards where awardsid=? & How is it possible to delete the aw row from the award called "Awards Name" when i uncheck him? I hope u have a solution |
#8
|
|||
|
|||
working now or not
|
#9
|
|||
|
|||
firefly why ican't download attachment
|
#10
|
||||
|
||||
No, its still not working.
When i try 2 unselect a checkbox and press on submit then he must delete the variable from that table :?: |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|