I am adding a feature on my website for Members to add (other Members as) "Friends".

The way I envision it working, is the person would click on the "Request Friendship" link in that person's Member Profile, and then be taken to a confirmation page which asks...

You have requested DoubleDee to be your friend.

Would you still like to send this request?

------------------------ -----------
| Request Friendship | | Cancel |
------------------------ -----------
If the person clicks on the "Request Friendship" then I need to fire off a whole bunch of PHP behind this page to do things like...

- INSERT record in Friends table
- EMAIL person

and so on...


I am wondering if I should handle all of this behind an HTML Form, or if there is some way to put "Command Buttons" on a web page and have them trigger actions behind-the-scenes?!

Hope that makes sense?!

Thanks,


Debbie