Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so dont bother with any of their useless mail servers here and just use oauth login instead. Thank the nice Russians for causing that. :)

Paste

Pasted as Bash by AmdY ( 16 years ago )
name: form
method: post
action: 
enctype: multipart/form-data
#tpl: form
fields:
    -   caption: Логин
        field: login
        type: text
        validate: ["empty()", "Uniq(User, login)", "StringLength(3, 20)"]
        escape: [magic()]
    -   caption: Пароль
        field: password
        type: password
        attr:
            autocomplete: 'off'
    -   caption: Подтвердите пароль
        field: password2
        type: password
        validate: [Equal(password)]
        attr:
            autocomplete: 'off'
    -   caption: ФИО
        field: first_name
        type: text
        validate: [empty()]
        escape: [magic()]
    -   caption: Компания
        field: company
        type: text
        validate: [empty()]
        escape: [magic()]
    -   caption: Телефон
        field: phone
        type: text
        escape: [magic()]
        validate: [phone()]
    -   caption: E-mail
        field: email
        type: text
        validate: ["empty()", "email()", "Uniq(User, email)"]
    -   caption: Адрес
        field: city
        type: bigtext
        escape: [magic()]
        validate: [empty()]
    -   caption: Дополнительная информация
        field: additional
        type: bigtext
        escape: [magic()]
    save:
        caption: Сохранить
        type: submit

 

Revise this Paste

Your Name: Code Language: