E-mail Form for Logged In User

A

Anonymous

Guest
Hi everyone, first post here and I'm very new to PHP, I'm on a project at the moment which is very much learn as you go so any help is appreciated.

I've created a login script, dashboard for logged in users and a search function on my localhost. This all works very well and now a logged in user can search a table on MySQL and it echoes the data I want them to see. This is basically a few columns of data like, town, position they play in a specific sport, availability and a unique reference number (using Primary Key from database).

What I want to happen is that they click a button that creates a contact form to request information from the search result, this would then generate an e-mail that is sent to the e-mail address associated with that record.

Example, User submits search and a record with Primary Key 1 is returned.
User clicks contact button and fills out a form.
This form is sent to the e-mail address on the row with Primary Key 1.

Thank you so much for any help I am really stuck with this one.
 
Back
Top