Jump to content

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

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.