Jump to content

Basic input/ output secure-website question


scunkphp

Recommended Posts

I have just  finished a login function for my website. Can someone show me how to input and output information from a secured website? ONce the user has been logged into the website, the page I pointed to is a secured page. Then, I would like to let the user input information from that secured page into a different database (interests table) while having a FK pointed to the users email (user table). In addition, I would like to have a new page echo the information the person had inputed.

 

Thank you

 

S.

Do you want help with a script, or do you want someone to do it for you? If you want help, what you want to do depends on how your login system works. If you use sessions (which is probably the most common method) you will want to look into the isset() function. You can check if someone is logged in by doing something like

session_start();
if (isset($_SESSION['my_logged_in_variable'])){
//do logged in stuff
}

 

to insert data into a mysql table, look into the insert SQL command, and look into the select command for getting data from the table

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.