بسم الله الرحمن الرحيم الى جميع الاعضاء تحياتي اليكم وبعد انا حصلت على مثال يوجد به ثلاثه ازرار radio button واحد للبحث واخر للحدف والثالث للتعديل الشفرات مفهومه والحمد لله والشفره هي الاتي
declare
cursor c1 is select * from dept where deptno=:t1;
a number;
b varchar2(50);
c varchar2(50);
xx number;
begin
xx:=:t1;
if :RM=1 then
insert into dept values(:t2,:t3,:t4);
commit;
:t2:=' ';
:t3:=' ';
:t4:=' ';
end if;
if :RM=2 then
if xx is null then
message('deptno not found');
message('deptno not found');
else
delete from dept where deptno=:t1;
commit;
:t2:=' ';
:t3:=' ';
:t4:=' ';
end if;
end if;
if :RM=3 then
open c1;
fetch c1 into a,b,c;
if c1%found then
:t2:=a;
:t3:=b;
:t4:=c;
else
message('deptno not found');
message('deptno not found');
close c1;
end if;
if :RM=4 then
:t1:=' ';
:t2:=' ';
:t3:=' ';
:t4:=' ';
end if;
end if;
end;
السؤال هو مادا يقصد بمتغير :rm الدي تم استخدامه في الشرط علما ان اسم radio button هو rg لكل الازرار لكن الاختلاف في خاصيه value كل زر ياخد value معين
ومن يثق الله يجعل له مخرجا