posted 17 years ago
ok, i have a page where the user inputs a review on a certain product.
after they submit, I create a file with the info.
then when i open up my "admin page" the reviews pop up in divs with
"accept" and "decline" buttons.
if i decline i just want to delete the file and make the div not show,
which isnt hard, i can just call a javascript to close the div.
But can i call a PHP function that I made in the current html page?
and call it in the action="" of the form?
and for the "accept", I want the stuff from the file associated with that div to be posted on the main page (where the user first submitted the review), in a different tab.
what i want to do to keep it simple, is simply just write "accepted" to the
file of the information i accept.
but the problem is, i dont know what file to write to when i click "accept"
any help would be appreciated.
Thanks,
Justin Fox
You down with OOP? Yeah you know me!