📜 ⬆️ ⬇️

vCard and simplify form filling

Registration on the site - the process is quite long and annoying user. Everyone is trying to speed it up and make it as simple as possible. But you still have to enter in the data in the fields, and this is not going anywhere.

Thinking over this, one fine evening, an idea emerged of how, with the help of vCard and a couple of scripts, this procedure can be simplified.

Description


The essence of the idea is to substitute user data from the vCard format into the fields of the registration form. Where we take the data in vCard format is not important - the user can specify a link to a page with his hCard, and we will convert it into a vCard, or download the VCF file from the local computer. Where the vCard processing will take place - on the client side or on the server side - is also not important.

Example


Given the form in which you need to specify the name, phone number, address and place of work. Additional fields are given: download vCard and hCard URL . The user selects the appropriate method. The system loads information about the user, parses it and inserts it into the specified form fields.
')

VCard data:


BEGIN:VCARD
PRODID:-//suda.co.uk//X2V 0.11 (BETA)//EN
SOURCE:http://artem.chertov.name/
NAME:Artem Chertov's diary
VERSION:3.0
N;LANGUAGE=en;CHARSET=utf-8:Chertov;Artem;V
FN;LANGUAGE=en;CHARSET=utf-8:Artem.Chertov
URL:http://artem.chertov.name/
END:VCARD

Form after data substitution from file:



The idea is not just for registration. You can use this method for any form on the site. I wonder if the method will be in demand, and in general, is the game worth the candle? It is interesting to hear your opinion on this.

Original article

Thank.

Source: https://habr.com/ru/post/52956/


All Articles