Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1952 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Marketplace     Services Offered / Looking to Hire     Programming or Coding :

Retaining form variables across multiple pages

Thread title: Retaining form variables across multiple pages
Reply    
    Thread tools Search this thread Display Modes  
06-04-2009, 05:39 PM
#1
buddhi225 is offline buddhi225
Status: I'm new around here
Join date: May 2009
Location:
Expertise:
Software:
 
Posts: 13
iTrader: 0 / 0%
 

buddhi225 is on a distinguished road

  Old  Retaining form variables across multiple pages

Simple Version: Hey, I have about three pages that I want to use to retain variables that were submitted from a form on the first page. How will I go about doing this?

In-Depth Version: I have three pages that I need to be able to retain form information that was submitted from the first page so that when somebody who did not originally submit the first form won't be able to access the rest of the pages unless they have the original form data stored in their session.

Here is my page setup:

Page 1: Admin login page (with the form to be processed)
Page 2: (login.php) - Processes the form and displays a news form that allows the logged-in admin to post news to the website, only if the username and password they entered matches the values I have stored.
Page 3: The result of the news form submition. Basically, a page listing the news postings from the database.

However, I have two different Page 3's (news.php and newsadmin.php). One is a regular page listing all of the news postings (a public version, if you will) and the other is an admin page that has "Delete" icons next to each news posting, letting the admin delete the items from the database but within the website.

What I want is to have it so that any public user will NOT be able to access the admin version of Page 3, unless they were originally logged in from Page 1.

I've tried messing around with storing session variables, but I'm not sure if I've been doing it correctly. Any help is appreciated.

Reply With Quote
06-04-2009, 05:42 PM
#2
AaronLad is offline AaronLad
Status: I'm new around here
Join date: May 2009
Location:
Expertise:
Software:
 
Posts: 6
iTrader: 0 / 0%
 

AaronLad is on a distinguished road

  Old

are you hiring someone todo this?

Reply With Quote
Reply    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed