thinkphp problem, picture upload problem, everyone help, thank you!

Source: Internet
Author: User
Demand is: First, upload a picture, enter a name and phone number, and then click Upload Image, pop up "upload success." Second, is the audit phase, is our internal who can rob the ticket, and then the database has a field called Ispass, when it is 1 o'clock (that is, audit success, the 0 O'Clock failure), from the database query name and phone number, and then output in the front page, that is. No need to use Ajax. Now the problem is: I want to run the result is as long as the "upload success" can be, but why also show the front-end content?
Database:
Controller1 Code:
Controller2 Code:
Front-End Code:
Operation Result:


Reply to discussion (solution)

Code no, can't see clearly

You do not exit after you upload, and will continue to execute the following code

Now the problem is not know how to quit, how to do?

Need to make a judgment, but I think for a long time can not think of what is the judgment
, do me a favor.


The problem with this template, you chose the template for Tickets_rob, and gave value values. Change a template to be good, switch to rob_tickets or no template.

You can jump to another page to display the successful front-end page, that is, do not display under Index, upload success after the success (', ' url '); jump to another URL.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.