01.
<form name=
""
action=
""
method=
"post"
>
02.
<input type=
"button"
value=
"ADD"
name=
"add"
onclick=
"location.href='?action=addrow'"
>
03.
<input type=
"button"
value=
"EDIT"
name=
"edit"
onclick=
"location.href='?action=editrow'"
>
04.
</form>
05.
<?
06.
if
(
$_GET
[
'action'
]==
"addrow"
)
07.
{
08.
echo
"Query Insert Here"
;
09.
}
10.
else
if
(
$_GET
[
'action'
]==
"editrow"
)
11.
{
12.
echo
"Query Update Here"
;
13.
}
14.
?>