Skip to main content
benmar81
Participant
March 23, 2017
Answered

Order page

  • March 23, 2017
  • 3 replies
  • 354 views

How do I create a page that allows users to upload a graphic or text for me to output and deliver back to them, adding to a cart?

    This topic has been closed for replies.
    Correct answer BenPleysier

    This a very broad question, something that we are not equipped to deal with in this forum. If you bring the questions back to a manageable size, we may be able to assist.

    For example, take the first part, namely 'How do I create a page that allows users to upload a graphic or text'. Assuming that the text is presented in the form of a document, like Word, you would upload the file using a form with the following form field

    <input type="file" name="file">

    or similar. The form would the be processed using server-side script, like PHP. The actual document/image (file) will be placed in a designated folder and a pointer will be placed in the database.

    Although PHP CRUD Tutorial (part 1) does not show how to upload a file, this is a great place to start learning. You will need to polish up on your knowledge of HTML, CSS, JS, PHP and MySQL

    3 replies

    Nancy OShea
    Community Expert
    Community Expert
    March 23, 2017

    Or, find a 3rd party, PCI compliant shopping cart that supports file uploads.

    Nancy

    Nancy O'Shea— Product User & Community Expert
    Rob Hecker2
    Legend
    March 23, 2017

    I had started to respond to this post and then stopped because it is so broad. I think Ben has given you a good challenge to start with: Write a routine to upload files to the server.

    Eventually you will also need to learn how to prevent people from uploading malicious software to the server, and the wrong types of images, and images that are way to large.

    BenPleysier
    Community Expert
    BenPleysierCommunity ExpertCorrect answer
    Community Expert
    March 23, 2017

    This a very broad question, something that we are not equipped to deal with in this forum. If you bring the questions back to a manageable size, we may be able to assist.

    For example, take the first part, namely 'How do I create a page that allows users to upload a graphic or text'. Assuming that the text is presented in the form of a document, like Word, you would upload the file using a form with the following form field

    <input type="file" name="file">

    or similar. The form would the be processed using server-side script, like PHP. The actual document/image (file) will be placed in a designated folder and a pointer will be placed in the database.

    Although PHP CRUD Tutorial (part 1) does not show how to upload a file, this is a great place to start learning. You will need to polish up on your knowledge of HTML, CSS, JS, PHP and MySQL

    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!