/    Sign up×
Community /Pin to ProfileBookmark

Please help, problem with Arrays

Here is my problem I have been working on all day to try and figure out.

I need to create an array based on user input.

I am doing an E-commerce site, and the user would like to purchase address tags. He can order one or many address tags. I have been trying to find a way the user can type an address into a text bar, click add, and have the address display in a text field below. I would also like to allow the user to remove, to delete or re-enter, added addresses. The problem I am encountering is creating and storing an array based on input. I want them to be able to enter one address, add it, and have the text bar cleared to add another address if they need to or want too. I would also like the input to be entered in with a * +”;”+”/n” * to make it easier for our shopping cart program to read (as having each seperate address on a different line but one option).

I have been going back and forth between the “Wrox JavaScript 2nd Edition” book (usually my javascript bible because I am not too new at this) and can not seem to get anything to work.

If clarification is needed, please leave a message.

All help is appreciated.

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@phpnoviceFeb 16.2006 — For $100, I know someone that would be glad to write such a thing for you. ?

If interested, give me your email address and I'll have him contact you.

Cheers.
Copy linkTweet thisAlerts:
@userloginFeb 16.2006 — $100 is cheap, the going rate for most fully fledged e-sites are a couple of thousand.

Besides, talking about prices in the forum is not permitted, it could be deemed as 'Price Fixing'....
Copy linkTweet thisAlerts:
@phpnoviceFeb 16.2006 — No, I was just referring to a single client-side page -- as described. ?
×

Success!

Help @Dako97669 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 6.17,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...