View Single Post
Old 01-11-2008, 04:37 PM   #5 (permalink)
Rohan Shenoy
Junior Member
 
Join Date: Jan 2008
Posts: 2
Default Re: How to send a value stored in a variable from one page to another page in php?

Here is how I understand your situation:
1. You have a website where users can register.
2. After registration, each account needs to be activated. till then it lies in the 'un-activated' table.
3. Activation can be done by the admin.
4, After activation, it should be moved to 'activated' table.

If I have understood it correct, then what I suggest is instead of moving the records between tables:
1. Have a single table for all users whether activated or un-activated.
2. Have a column by the name 'activated' whose default value will be 'no'.
3. When you want to activate the un-active account, simply update the 'activated' column from 'no' to 'yes'.

As simple as that!
Rohan Shenoy is offline   Reply With Quote
Sponsored Links