Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parsing out Address???

Status
Not open for further replies.

zishan876

Programmer
Mar 19, 2007
61
US
Hi:
I wanted to know if anyone has an example of parsing out the address of a user to Street, City, State, Zip...
Right now it looks like this in one field...
7 Grant St, city, NY 11507-1820

Any help appreciated it...
The field is called Name...
Thanks
Shan
 
Use the split command.
Code:
var addressArray = address.split(",");

Clive
Runner_1Revised.gif

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"To err is human, but to really foul things up you need a computer." (Paul Ehrlich)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To get the best answers from this forum see: faq102-5096
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top