close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

previous page redirection

Thread began 9/11/2010 3:50 pm by tolushayoo193471 | Last modified 9/13/2010 12:36 pm by Jason Byrnes | 1271 views | 5 replies |

tolushayoo193471

previous page redirection

Hi, pleas am just wondering, please is it possible that let assume that a user didnt login before getting to checkout page and the user login when he was on the checkeout page, but the user is redirected back to the user profile page, but is it possible for the user to be return back to the previous page that he or she was before he logged in. Let assume he was on the checkout page before login in, after logining he should be redirected back to checkout page instead of user profile page.

thank you

Sign in to reply to this post

Jason ByrnesWebAssist

on the login page, set the forms action attribute like this:

php:
 action="<?php echo $_SERVER["PHP_SELF"]; ?><?php echo (isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] != "")?"?".$_SERVER["QUERY_STRING"]:""?>"
Sign in to reply to this post

tolushayoo193471

previous page redirection

thank you, here is how the action form look like
<form action="<?php echo ($_SERVER["PHP_SELF"]);?><?php echo (isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] != "")?"?".$_SERVER["QUERY_STRING"]:""; ?>"

but after I've saved and tested it, nothing happens when I entred my password and clicked login, but on the browser window, my user name and password was showing. thanks please find my attached login page.

Attached Files
New folder (2).zip
Sign in to reply to this post

Jason ByrnesWebAssist

you have changed the entire form tag instead of just the action attribute.


the full for tag should be:

php:
<form  action="<?php echo ($_SERVER["PHP_SELF"]);?><?php echo (isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] != "")?"?".$_SERVER["QUERY_STRING"]:""?>" method="post" id="WAATKLogInForm">




the method and ID must be left in tact.

Sign in to reply to this post

tolushayoo193471

thank you it works and God bless

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

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

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