I need to create a function which is like an "Add friend" function. first of all, as a logged in user, I am able to search for a list of other users in the website. after which i can click a hyperlink and it brings me to a page where i can type a message and send it to my friend through email. That message will also show up at my friend's homepage in a textbox accompanied by an Accept and a Reject button for friend to accept or deny friend request.
the question is: how do i make the control (the texbox with the accept and reject button) such that it's a "template" and that it will show up at the homepage according to the number of friend request i have. say if i have 3 request, so i'll have 3 of the template at my homepage.