Your editbox is did 5 and your OK button (which is what i'm assuming you want your sclick to trigger) is 7, so you just have to do something like this:
Code:
on *:DIALOG:prayerr:sclick:7:{ echo $color(info2) -s * When you clicked OK, " $+ $did($dname,5) $+ " was in the editbox. }