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

Tweaking... need some help on few issues

Thread began 5/30/2012 1:47 am by Christopher West | Last modified 6/01/2012 2:19 pm by Christopher West | 4862 views | 12 replies

Christopher WestCommunity Expert

so am i right in saying that you code you just gave me just now replaces the original code you gave me early one which was:

<a href="regitration.php?accesscheck=<?php echo (htmlentities($_SERVER["PHP_SELF"], ENT_QUOTES)); ?>">register</a>

as this is what confused me slightly :)

I just need to make sure that :
1. (all registration links is done via the link on the login and forget password page)
2. if customer registers by going to login page first, it will log them in and go to their account.
3. if customer adds stuff to cart then when they go to checkout it requires them to login, but they click on register after register they go to checkout page (without going to their account as stated in point 2).
4. if customer adds stuff to cart then when they go to checkout they just login, then this goes to checkout (this currently happens on my original code thats live on website)

I just want to confirm that your code help does the above conditions.

currently your code suggestion is:

on the register form i use: action="<?php echo (htmlentities($_SERVER["PHP_SELF"], ENT_QUOTES)); ?><?php echo (isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] != ""?"?".htmlentities($_SERVER["QUERY_STRING"], ENT_QUOTES):""); ?>"

and on the register link (on my login and forget password pages, i use the code:

<a href="../../register.php?accesscheck=/checkout.php">Register</a>


Obviously on the register page i do have "secruity assist authenticate user"

and have ticked "pass original query string on redirect" and "go to previous url (if exists)"

if log in succeeds, go to: accoutn.php
if log in fails go to: login.php

on the login.php for he authenticate user i also have ticked the passquery string and go to previous url, i left if log in succeeds blank.

obviously i attahced the files previously as well to show what i mean.

Chris


Chris

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