All-In-One Form, should I be using sessions here?

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
bmcua

Post by bmcua » Wed Feb 26, 2003 4:09 pm

any code i can see???

Romantik
New php-forum User
New php-forum User
Posts: 67
Joined: Mon Feb 24, 2003 2:55 am
Location: ../Ukraine/Kherson
Contact:

Post by Romantik » Thu Feb 27, 2003 12:29 am

Hi!
Use sessions
and save in sessions UserID and check it in your forms
session_start();
if(!isset($_SESSION["UserID"]))
exit;
else
$sql= "SELECT * ..... WHERE... AND id=".$_SESSION["UserID"];

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests