/    Sign up×
Community /Pin to ProfileBookmark

Need Help With URL’s

If I have a URL:

[url]www.xyx/catalog.asp?onAddToCart=http://www.xyz/shoppingCart.htm[/url]

how would I create a URL that dynamically creates the [url]http://www.xyz/shoppingCart.htm[/url] URL? The reason I’m asking is because I do not know what the address of the shopping cart page will be once it’s published, and I need to have a way of getting to the shopping cart page (what happens when they click on the add to cart button).

If anyone could help me on this, I would really apprieaciate it.

Thanks

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@Zach_ElfersDec 16.2002 — Where is the .com, .net, .org, etc. in your link?
Copy linkTweet thisAlerts:
@hnhn2020authorDec 16.2002 — Below is the link that works (internally) for me.

"http://10.1.1.123/catalog/root.asp?onAdd=http://10.1.1.123/website/ShoppingCart.htm"

However, I need to replace the onAdd page(http://10.1.1.123/website/ShoppingCart.htm) with the actual page, which I must somehow configure the URL dynamically because I don't know what it will be. It should be something like "www.xyz.com/store/shoppingCart.htm".
×

Success!

Help @hnhn2020 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...