Select Multiple Items Tables, Add to Cart, View Cart Later, Email Cart Contents

I've developed a webpage that displays the contents of my database. The user has 4 different views to look at, (View 1, View 2, View 3 and View All). In each of these views the user can select some rows, add the rows to a cart and continue browsing.

I know how to get what the user selected , but i don't know how to get what they selected, store their selection, allow them to continue surfing, store more rows, and then finally email the administrator their selections.

This is what i don't know how to do:

1. I do not know how to allow users to Sort Columns by clicking a Column Header.

2. I do not know how to allow user to select rows (via checkbox) and send the selections to a cart (structure i am assuming), continue browsing and add more items to cart.

3. I do not know how to have all the pages display how many items they have the the cart.

4. I do not know how to have user view cart and delete selections.

5. I do not know how to have user email their selections over to an email address that is stored in the same database (different table).

6. I do not know how to send html email to administrator.

To get a more concise picture of what i am attempting, please view the following

1. My previous post: http://www.experts-exchange.com/Web/WebDevSoftware/ColdFusion/Q_20807809.html#9816347
zakirdavisAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

hartCommented:
you are asking for a whole site to be created....

1. for sorting of columns..

by default say u have a query
<cfparam name="orderbyfield" value="id"><!--- i am assuming u have unique field called id --->
<cfquery name="Qry_GetDetails" datasource="dsn name">
   select  details from table order by #orderbyfield#
</cfquery>

now after u have shown the complete table details in a tabular format..
give an image that shows asc [a arrow key that points downwards]. now on click of this image u will have a hidden field called orderbyfield in the form..

say if he clicks on first name then assign FirstName desc / asc in the hidden field using javascript...
and submit the form to the same page .

now when the query gets executed the orderbyfield varable will be found defined and ur FirstName desc / ascwill be fired..

thats it about sorting...


now the second part of adding items to cart

u will have an unique id for each row in the table.
so assign that id as the value for the check box..

now create a table that will store the id's selected by the user.
so ur table will have the logged in users id and then the selected id's in the table...

so anytime the user logs in you can query this database and show the details of his cart,
then whe he confirms the order delete that record from the this table and add it to the confirmorder table.

and using the details from the confirmorder table mail it to the administrator..


Regards
Hart
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
zakirdavisAuthor Commented:
I think i want to use sessions for storing the information the user selected. Creating a new table could get big. Also, i want to stray away from users having to log in.
0
hartCommented:
no the tables won't become big because, once the order is confirmed, delete the particular record from the table and so the table size will remain small..

Regards
Hart
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Servers

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.