Passing information from page to page

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
summitweb
Forum Commoner
Posts: 27
Joined: Thu Jun 30, 2005 4:28 am
Location: Atlanta, Georgia

Passing information from page to page

Post by summitweb »

Hello:

I'm designing a site for an organization which sponsors a lot of events.

They want each event to have its own page along with a form for anyone who is interested to signup.

A person is able to signup for more than one event.

After a person is signed up for all the events for which they are interested, they want the site to have a page which displays all the events for which a person is registered. The person can review their registrations and do a final registration submission.

Is it possible to accomplish this task? How do I keep the website from remembering what a person chooses so they can receive their review page?

Any ideas and thoughts are greatly appreciated. Thank you for your help.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

store the information in a database..

some info to help: http://www.oreilly.com/catalog/javadtab ... r/ch02.pdf
summitweb
Forum Commoner
Posts: 27
Joined: Thu Jun 30, 2005 4:28 am
Location: Atlanta, Georgia

Post by summitweb »

Hi,

Thanks for the reply.

I was thinking of going in that direction using a database. The only thing is I need a way to identify which order belongs to which customer. I'm not sure how to accomplish that.

Any ideas?

Thanks
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post by shiznatix »

have a table with id, firstname, lastname, event

then when the user wants to view what they have signed up for they can just go to a page and enter their name and it will pull from the db the events the person is signed up for. i definatly recommend using a simple register script for this one because someone can sign up a billion different people for events just to make you mad.

the query that would go for the view events i signed up for would be somtin like

Code: Select all

$query = '
  SELECT
    *
  FROM
    table_name
  WHERE
    first_name = "'.$firstname.'"
  AND
    last_name = "'.$lastname.'"
';

$do_query = mysql_query($query) or die(mysql_error());

while ($info = mysql_fetch_assoc($do_query))
{
  echo $info['event'].'<br>';
}
or somthing simmilar to that
Post Reply