/    Sign up×
Community /Pin to ProfileBookmark

PHP/Javascript

I am using PHP and Javascript together to code an e-commerce website. Javascript is used to change a main image as well as to change an item that will be added to the cart when clicked add to cart. I have gotten everything to work except for the Javascript to change the Item name, description, and price. Here is what i want the page to look like in the end:

[URL=http://www.robbailer.com/C.J.%20Laing/home.htm]Example Page[/URL]

There is an admin page where the Name, Description, and Price are being stored. The variables that they are being stored in are. $itemname, $description, and $price. I am trying to use these variables to display the text on the page.

The page right now looks like this:

[URL=http://www.cjlaing.com/home/frmLstItems.php?category=1]New Page[/URL]

I have attached what I think are the right amount of files to solve this. If you need something else, let me know. THanks soo much!

[upl-file uuid=1865ab5c-b98f-49aa-8596-e4d14382ef4b size=2kB]files.zip[/upl-file]

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@rbailerauthorMar 24.2005 — I am not sure if I have given enough information to solve the problem, but if anyone thinks they can do this, please let me know and I will pay you for your time. $$$$
Copy linkTweet thisAlerts:
@diamondsMar 24.2005 — you really shouldnt depend on javascript to do this...

you should give every item its own page, along with the 'gallery' that you currently have. (so clicking on the picture will select the item you want to add, not hovering.)

remember, the site should function [I]even if javascript is disabled[/I]
×

Success!

Help @rbailer 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.18,
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,
)...