This topic is locked
[SOLVED]

 File operations

4/4/2010 4:34:26 PM
PHPRunner General questions
K
Khris author

I've got some varchar fields setup on a mySQL database with the files being stored locally on the computer. Is there any way to know which radio button is selected whenever the record is saved/updated?
The options are Keep, Delete, and Update. Do these get passed along and can be used in an event?
Thanks

Chris

Sergey Kornilov admin 4/4/2010

Chris,
you can access it as > $REQUEST["typefieldname_1"]


It accept the following values:

upload0 (Keep)

upload1 (Delete)

upload2 (Update)

K
Khris author 4/5/2010



Chris,
you can access it as
It accept the following values:

upload0 (Keep)

upload1 (Delete)

upload2 (Update)


I assume this could be used in the following context?

IF ($_REQUEST["type_fieldname_1"] == "upload0")

{

//Do if Keep

}

ELSEIF ($_REQUEST["type_fieldname_1"] == "upload1")

{

//Do if Delete

}

ELSEIF ($_REQUEST["type_fieldname_1"] == "upload2")

{

//Do if Update

}


*EDIT: I assumed correctly. I've tested this and it works. Thank you!