close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


Link to order history

Thread began 1/16/2012 4:38 pm by bill3786 | Last modified 1/16/2012 5:55 pm by bill3786 | 578 views | 2 replies |


Link to order history

Trying to add a link to the order history page from the login page once a user has logged in.

All the order and user data is stored correctly in the database but for some reason I cant pass the UserId from the login page to the order history page.

This is the link <a href="customer_order_history.php?UserID=">Order History</a>

When I test the recordset of the order history page with UserId's the correct results are returned.

Sign in to reply to this post

Ray BorduinWebAssist

You should probably not be passing the user id in the url and instead reference it from the Session variable stored when they log in.

That means updating the Recordset on the order history page to filter based on the session variable that you can find the name of from the user authentication server behavior on the login page.

Sign in to reply to this post


Thanks Ray

I changed the link to <a href="customer_order_history.php?UserID=<?php echo $row_WADAusers['UserID']; ?>">Order History</a>

and also by checking other forum posts the variable run time value should be $_SESSION['SecurityAssist_UserID'] and not $_SESSION['UserID'] on both the order history and order detail pages.

The Create an Order History documentation states that you use UserID but after checking the login page 'SecurityAssist_UserID' is the correct session variable.

Seems to work correctly now.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...