This topic is locked

Pretty formatting

8/10/2006 1:25:37 PM
PHPRunner General questions
D
drh author

Hi all.
I think that maybe I didn't explain myself very well in the last post. Please let me try again.
Say I have a field named "phone". I want the user to enter in a us phone number. As they are entering the digits, I wan them to see the format.
In other words, as they are entering they may see (555)444-XXXX.
I have found a javascript program here: http://www.vicsjavascripts.org.uk/FormComp...ormatNumber.htm
that seems to work.
the javascript program is an external script called by ...add.php. The problem is I am not sure how to pass the value back to my ...add.php program so that it gets written to the database. Currently, nothing is written to the database.
I know this is a javascript issue and I am currently googling for an answer. I will definitely will post my resolution since I think many people would be interested in this.
If anyone has any suggestions or possible solutions, I am all ears.
Thanks for any input.
If I can supply more info, let me know what you would like to see.
Dave