Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Textarea Different Format
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Textarea Different Format

 Post Reply Post Reply
Author
nsf247 View Drop Down
Newbie
Newbie


Joined: 12 February 2004
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote nsf247 Quote  Post ReplyReply Direct Link To This Post Topic: Textarea Different Format
    Posted: 17 February 2004 at 12:17pm

Thanks all for your help on that previous question. Now if i can tap your brain once more with something similar. Been reading up on multi-dimensional arrays. All examples seem to have hardcoded arrays.
My data will always be different with really no limits. But i have a format question and how to split this array into two variables. Say I have a text area. I need people to type a name and a number next to each other seperated by a space.

<Textarea>
PETER 1<ENTER>
PAUL 15<ENTER>
MARY 32
</textarea>

Now how can I split NAME and the number next to it, seperated by the space as a delimeter, put name into one array and number into another array and tell my database that I need the number next to that name(which is already in the database) to be placed into the number column next to it's corresponding name.

Although the actual ACCESS database table is a little more complex, essentially, It would look like this for this example before any data was submitted.

NAME      NUMBER
PETER
PAUL
MARY

We need the table to look like this after submit.
NAME NUMBER
Peter      1
Paul       15
Mary      32

I guess I'm asking how do i grab both sets of data submitted in the format described in the text area into two arrays and then into they're own seperate variables that I can call into an INSERT String and then i guess i'll have to figure out how to compare. Man, I'm confusing myself. Confused

I think this might be clear, if not let me know and I'll try to extrapolate. Thanks all.

 

 

 

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.