|
Posted by James54321 on 10/22/06 15:38
I have recently set up most of my new site in PHP which i'm very happy
about but now i have hit a problem. I am now at the stage of making
admin's lives easier by making it so they can use a nice interface and
not phpMyAdmin to aurhorise submisions to the site.
I have created a page whereby the yet to be authenticated submitions
are shown to the admin with three radio boxes next to each submition
one to ban the user (ip address of) one to approve the submision and
the other is to delete the submition. I also have a button which
submits the form to itself.
But now I need to know how to process that as I dont know how to do a
loop that chceks what the radio option is and takes the appropriate
action. Because an admin could leave an option that must also be
allowed for as they may need to ask another admin about it so it could
be id 50, 54, 55, 56, 57, 60 etc and I dont know how to allow for that.
So if any of you could please help me with this matter I wouold really
appreciate it.
P.S.
To allow a comment the "approved" field has to be set to 1 instead of 2
and to delete it gets erased from the whole db and ban would put the ip
of the user into another ban list db.
But I can do that code, I just need the loop part and if possible that
if statement.
Oh and btw the options are named by the id of the submition ... but
this can be changed if necessary.
Thanks, James.
Navigation:
[Reply to this message]
|