Problem mój wygląda następująco.
Mam w bazie danych wpisany np. numer rachunku :41 3432 1889 0000 6850 6829 4230
I teraz chcę go pobrać do pól.
Tylko aby to co jest oddzielone spacją było każde w innym inpucie.
Czyli według id infputów:
41- nr1
3432 -nr2
1889 -nr3 itd...
<input type="text" id="nr2" name="nr2" size="3" maxlength="4" style="text-align: center;" /> <input type="text" id="nr3" name="nr3" size="3" maxlength="4" style="text-align: center;" /> <input type="text" id="nr4" name="nr4" size="3" maxlength="4" style="text-align: center;" /> <input type="text" id="nr5" name="nr5" size="3" maxlength="4" style="text-align: center;" /> <input type="text" id="nr6" name="nr6" size="3" maxlength="4" style="text-align: center;" /> <input type="text" id="nr7" name="nr7" size="3" maxlength="4" style="text-align: center;" />
Jak to zrobić?
Bo samo pobranie całości z bazy wygląda tak: