View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

redirecting back to checkout.php after login

Thread began 8/28/2009 3:26 pm by rayne202093 | Last modified 8/28/2009 4:26 pm by rayne202093 | 911 views | 1 replies

rayne202093

redirecting back to checkout.php after login

If a customer gets to checkout.php and then decides to log in, after logging in he is taken to the users_Profile.php page which has an "update button". Clicking the "Update" button takes him back to users_Profile.php when it needs to take him back to checkout.php. How do I fix this?
Thanks.
--rayne

Update: Answered in another post from Eric showthread.php?t=3523
-----------------------------------------------------------------------------
I think that the access check part of this is ok, it is not sending you back to this page though for another reason. On the login page the user login form submits to itself and does not include the query string that has the access check in it. To correct this and get the page to redirect to the access check parameter you will need to update the action of the login form.

On the login page in the form that has the id id="WAATKLogInForm" you will need to update the action. Replace what is currently set for the action with this:

<?php echo $_SERVER["PHP_SELF"]; ?><?php echo (isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] != "")?"?".$_SERVER["QUERY_STRING"]:""; ?>

Doing this along with adding in the access check value to the login page link on the checkout page should get you back to the checkout page after you login from it.
-------------------------------------------------------------------------------------


Also, I think this:

Is this the wrong account? Please <a href="users_LogIn.php">log in</a>

needs to change to this:

Is this the wrong account? Please <a href="users_LogIn.php?accesscheck=checkout.php">log in</a>

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

Content

rating

Layout

rating

Ease of use

rating

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...