in your users table, you can make a field, which is an integer type, and has an auto increment property, and primary. With that, you can generate a number, which is identify your user's data. That is called primary key.
If you make a news machine, or a comment box,
you store this number in that another table called foreign key,
for example:
users_table
user_id (primary key)
name
email
news_table
news_id
owner_id ( you put the user's numbers from users_table the user_id)
.....
"without changing the action of the form?"
if you select a user, or has a logged in user, you store in session his/her user_id number. And when you insert a new comment, or news, you put this session variable in another tables.
How to make a field as unique?
ALTER TABLE table_name ADD UNIQUE (
field_name)
run this query in phpmyadmin, or with php.