I am adding a Friends feature to social network, like facebook.
My system works as follows:
I am trying to create a new record in a table each time the add friend button is clicked.
The table needs to contain the user ids of the user making the friend request and the user who’s profile is being viewed.
I would then filter the data later to create friend lists and so on... I have user registration in place for the IDs... so that is not an issue.
The issue is, when clicking the button, the page just re-loads and does not create a record or do anything.
As the page is supposed to redirect to the index page afterwords, I know that there is an error or I am doing something incorrectly.
Although, I do not understand the issue, as I am an experienced user of these products
Help would be appreciated.