• How to make a page that takes some user data and let them download a UNIQUE file associated with them.
    Name
    Unique ID
    Submit

    On clicking submit a unique file associated with them gets downloaded

Viewing 6 replies - 1 through 6 (of 6 total)
  • You will need to write some custom PHP code. Create a custom template page in your theme with the form to collect the information.On submit you can sent file in response. for storing the user submitted info you can create custom post type.

    Thread Starter itsboss10

    (@itsboss10)

    @jaykpatel Can you please elaborate how to go about it, also you said

    for storing the user submitted info you can create custom post type.

    , if you mean that I have to store info submitted that’s not correct, I will already have that info.
    I am new to coding can you help me with how to start with that PHP code, I will then do rest myself.

    I need more info about your workflow.

    For example
    1) who are going to use this form? logged in user or guest or both?
    2)how will you intend to store unique id? how will you upload each file and associate them with unique id / name? is unique id is related to your WordPress user?

    basically I need you to elaborate your user story.

    Thread Starter itsboss10

    (@itsboss10)

    @jaykpatel Thanks for responding.
    1) guest users, no login
    2) I feel to store them in WordPress media folder with custom link like /wp-content/upload/…/UNIQUE_ID. Let me know if there is a better way.

    The form is for students to download their Certificate. The certificate can be accessed by providing NAME and UNIQUE ID.

    Thread Starter itsboss10

    (@itsboss10)

    @jaykpatel are you following up on this?

    Will post some code snippet.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to make a page that takes some user data and let them download a file’ is closed to new replies.