Page 1 of 1

Passing information from page to page

Posted: Thu Aug 04, 2005 4:27 pm
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.

Posted: Thu Aug 04, 2005 5:49 pm
by feyd
store the information in a database..

some info to help: http://www.oreilly.com/catalog/javadtab ... r/ch02.pdf

Posted: Fri Aug 05, 2005 8:29 am
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

Posted: Fri Aug 05, 2005 8:35 am
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