close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

help me in redirect

Thread began 12/20/2009 6:36 am by alhero_94375722 | Last modified 12/22/2009 3:38 pm by alhero_94375722 | 3935 views | 9 replies |

alhero_94375722

help me in redirect

Hi i have to problem with login page and same in cart.php with continue shopping

When i login in i stayed on the same page and I want to go to the previous page
i try to add <?php echo((isset($_SERVER["HTTP_REFERER"]))?$_SERVER["HTTP_REFERER"]:"") ?> in action in the form but the problem
it go to previous page but i dont login in

and the same problem with the continu shopping in cart.php when i press the buttom i stayed in cart.php i reading all post in ecart section in forums about
this problem but without result


in attach 3 files 1 to my cart and 1 to login .php and 1 to php helper

and very thanx

Attached Files
cart.txt
helper - php.txt
login in.txt
Sign in to reply to this post

Jason ByrnesWebAssist

For the login page, set the action of the login for to:

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





on the cart page, there may be php error occurring that is preventing the redirect, add the following on line 1 see if an error is occurring:

php:
<?php

error_reporting
(E_ALL);
ini_set('display_errors','on');
?>
Sign in to reply to this post

alhero_94375722

sorry

tanx jason but the problem not resolved in attach here full page login php

and for cart page alredy i but this script but dont show any error

thanx for help me

Attached Files
login.txt
Sign in to reply to this post

Jason ByrnesWebAssist

To trouble shoot, add a success and failure redirect to the Authenticate user server behavior. As it is right now, these are blank. this will at least tell you whether you have logged in successfully.

Sign in to reply to this post

alhero_94375722

thanx

i am very jason but my problem not in login in but in redirect to preiveus pages befor login
add a success and failure redirect but i go to success page not to preveus page

and what about cart


very thanx

Sign in to reply to this post

Jason ByrnesWebAssist

To go to the previous page, the address needs to be passed through the accesscheck querystring variable

What is the address in the address bar when you get to the login page? Does it contain the accesscheck querystring variable?

You can see an example of this by adding Page Access restriction to a page, set it to go to the login page if not logged in, then try to access it.



To debug the cart page, add the following code just after the body tag:
<pre><?php var_dump($_SESSION); ?></pre>
this will write the session contents to the cart page, post back the session contents.

Sign in to reply to this post

alhero_94375722

very thanx jason for this help now the error in cart.php after i add <pre><?php var_dump($_SESSION); ?></pre>
is
array(3) {
["WAVT_detail_Errors"]=>
string(0) ""
["eCart1_Items"]=>
string(120) "1|WAECART|Avobath|WAECART||WAECART|0|WAECART|1|WAECART|29|WAECART|Avobath.jpg|WAECART|0|WAECART|29|WAECART|1 Avobath (1)"
["WAEC_ContinueRedirect"]=>
string(16) "/detail.php?ID=1"
}

Sign in to reply to this post

Jason ByrnesWebAssist

OK, so the ["WAEC_ContinueRedirect"]=>string(16) "/detail.php?ID=1" variable is getting a value, make sure your cart page has the following code just before the <doctype..> tag.

php:
<?php

// WA eCart Redirect
if ($eCart1->redirStr != "")     {
  
header("Location: ".$eCart1->redirStr);
}
?>
Sign in to reply to this post

alhero_94375722

very very thanx

thanx jason relly very very thanx two problem is resolved
and continu shopping is working 100% now i but i have small problem how i hide this error
array(3) {
["WAVT_detail_Errors"]=>
string(0) ""
["eCart1_Items"]=>
string
(371)&#65533;1|WAECART|Avobath|WAECART||WAECART|0|WAECART|1|WAECART|29|WAECART|Avobath.jpg|WAECART|0|WAECART|29|WAECART|1 Avobath (1)"
["WAEC_ContinueRedirect"]=>
string(16) "/detail.php?ID=1"
}

Sign in to reply to this post

alhero_94375722

thanx jason i remove<pre><?php var_dump($_SESSION); ?></pre>
and work 100%
and you know whats problem may be the <?php
// WA eCart Redirect
if ($eCart1->redirStr != "") {
header("Location: ".$eCart1->redirStr);
}
?> alredy add when i setup up ecaart but it add before // WA eCart Update
but when i moving to before the <doctype..> tag it work 100%

thanx alot jason you are good man

Sign in to reply to this post
loading

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