سؤال

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