문제

I have a form which gets user's telephone and stores it in an database. Then I am fetching data from the database and place it on placeholder like this.

Telephone<input name="telephone" type="text" size="25" placeholder="<?php echo $user_data_profile['telephone']; ?>"/>

everything is fine. I want to make the placeholder's data to appear as an editable text, so that the user will have the option to change his telephone number easy. Any suggestions?

도움이 되었습니까?

해결책

I would suggest:

Telephone
<input name="telephone" type="text" size="25"
       placeholder="xxx-xxx-xxxx" value="<?=$user_data_profile['telephone']?>"/>

Using whatever phone number format that is relative to your area.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top