use phpcms v9 When making front-end user submission information , There's a picture upload column .

If the note /phpcms/modules/attachment/attachment.php

20// Determine whether to log in 
21 if(empty($this->userid)){
22 showmessage(L('please_login','','member'));
23 } 88 if($this->isadmin==0 && !$grouplist[$this->groupid]['allowattachment']) showmessage(L('att_no_permission'));

You can upload . There is no comment at the end , stay /phpcms/modules/formguide/index.php add to

class index {
private $db, $m_db, $M;
function __construct() {
$this->db = pc_base::load_model('sitemodel_model');
$this->m_db = pc_base::load_model('sitemodel_field_model');
$this->M = new_html_special_chars(getcache('formguide', 'commons'));
$this->siteid = intval($_GET[siteid]) ? intval($_GET[siteid]) : get_siteid();
$this->M = $this->M[$this->siteid];
$_SESSION['userid']='1'; // Manually added , Give Way attachment Judgment can be made by
$_SESSION['roleid']='1'; // Manually added , Give Way attachment Judgment can be made by
}

phpcms v9 Add a picture field to the form wizard , Prompt session expiration , Please login again for more related articles

  1. phpcms v9 Form wizard adds captcha

    To do the function of message board , So add form , Want to add a verification code function before submitting a message . The online tutorials are confusing , So I experimented in person , Steps are as follows : The first is to call the page of the form and add the verification code . Forms js Calling a template defaults to  \phpcms\temp ...

  2. PHPCMS v9 How to add a CAPTCHA to the form wizard

    It's relatively simple , So there is no function of adding captcha . Most of the similar online tutorials are inaccurate . So I tested it myself , It is found that the following methods are available . Hope to be helpful to friends in need . 1. The first is to call the page of the form and add the verification code . Forms js Call module ...

  3. PHPCMS V9 Form Wizard call and pagination

    References are as follows :v9_form_tlj For your form data sheet ,`flqh`,`title`,`sj`,`username`,`datetime` For the fields in your form ,page="$_GET" ...

  4. phpcms v9 The form realizes the function of question and answer consultation

    This article is transferred from others phpcms v9 Message board plug-in can be installed message board , Do Q & A , In that case, there are a lot of things that need to be modified , It was also found phpcms v9 There is a form wizard function , Just leave a message , Can't reply , Today's imitation station network : Xinyuan network studio tells you ...

  5. phpcms Use the form wizard to create a message board ( Can reply to )

    This blog is very detailed , You can jump to the following link : http://blog.aiwebcom.com/%E7%BD%91%E7%AB%99%E5%BB%BA%E8%AE%BE/phpcms/456.html notes : ...

  6. PHPCMS v9 How to realize the function of question answering and consultation with the Form Wizard of

    This article mainly introduces in phpcms v9 How to realize the function of Q & A in the Form Wizard of phpcms v9 The content management system itself has no question and answer module , Only the Form Wizard , But the form wizard has big limitations , Through the Form Wizard , We can only view letters submitted by users ...

  7. phpcms v9 How to use the Form Wizard function of

    This paper mainly introduces phpcms v9 How to use the Form Wizard function of , And a number of cases to explain : Let me introduce you v9 How to use the Form Wizard of The form wizard is very practical , Generate a form , It's often used as a message board , Or in the recruitment column as a ...

  8. phpcms v9 How to use the Form Wizard function of A number of cases are attached

    This paper mainly introduces phpcms v9 How to use the Form Wizard function of , And a number of cases to explain : Let me introduce you v9 How to use the Form Wizard of The form wizard is very practical , Generate a form , It's often used as a message board , Or in the recruitment column as a ...

  9. Project review 1- Image upload -form Form or base64- Front end image compression

    The first project is finally online , It's a public welfare crowdfunding platform called Pro youth funding , Wechat end , The computer and the background interface are mostly done by me , For months , It feels like a lot of harvest , I think it's necessary to summarize . The first thing I think about is uploading pictures . In general, the form data is ajax On ...

Random recommendation

  1. Git Initialize version Library

    Create a version library with a workspace When starting a new project , The first step is to create and initialize the code base . If it's in the local working directory , that : $ git init That's enough . If the version library you want to initialize is not in the current directory , Need to be for git init ...

  2. PHP Cache extension opcache

    opcache ( The entire zend opcache): from php5.5 Start , Provided by default php Script cache extension , compile php5.5 Add a parameter to it --enable-opcache You can compile opcache 了 , Just to enable ...

  3. see android app Commands for thread information

    Reference resources :https://my.oschina.net/zhiweiofli/blog/138454 ps | grep 'joyodream' find app Of pid: joyodream As part of the package name ...

  4. linux c Next mysql Programming examples

    /* ============================================================================ Name : mysql1.c Auth ...

  5. 5 Minutes to build WebRTC Video chat

    use Baidu Search WebRTC, I think it's also a bunch of . I thought with this friend ( build WebRtc Environmental Science ) Of SkyRTC-demo Can be a smooth realization of chat , It took me a long time , Text messages can't be sent out , Not to mention the video . So I did it myself . Want to ...

  6. sql server The temporary library file is too large transfer tempdb database

    As a result of loading SQL Server It is installed on the system disk by default , After a period of use ,tempdb The database takes up 68G, Lead to the whole C The dish is full , The ultimate solution is to move tempdb Physical file , Move to another large space disk . take tempdb From its magnetism ...

  7. WebMagic

    One .WebMagic Four components of 1.Downloader Downloader Responsible for downloading pages from the Internet , By default apache HttpClient As a download tool 2.PageProcessor Responsible for parsing pages ...

  8. 【Unity Shader】 from NDC( Normalized equipment coordinates ) The mathematical principle of coordinate transformation to world coordinate

    from NDC( Normalized equipment coordinates ) Key points of coordinate conversion to world coordinate Reference material How to go from device coordinates back to worldspace http://feepingcr ...

  9. download google play Under the app

    1. open appk downland Website https://apps.evozi.com/apk-downloader/?id=com.cmcm.live 2. hold google play Link directly to transport ...

  10. vue What you need to prepare for an interview

    Hot front end frames emerge in endlessly , We as yard farmers , Still need to learn , To explore new problems , Learning new technologies , In fact, it's just to write a good , Think of yourself as high quality code . Today, I'd like to share the most popular front-end framework vue, It's also my favorite frame . vue On ...