Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jun 2011
    Thanked 0 Times in 0 Posts

    Readonly checkboxes and radio buttons


    I have a form here and when you fill it in, I want a mail sent to you as a receipt with readonly information.

    There are a few checkboxes and radio buttons on the form, and my question is: How do I retrieve this information from the database and have it on the "receipt" as readonly?


  • #2
    Regular Coder Kevin_M_Schafer's Avatar
    Join Date
    Apr 2011
    Fairfax, Minnesota, U.S.A.
    Thanked 17 Times in 17 Posts
    Hi yazan,

    I have a silly question, but nonetheless, I want to ask to try to understand what you are creating. If a person receives an e-mail, typically, they cannot change it anyway, so why is there a reason to make it "readonly" information. Do you mean you don't want them to be able to forward it to someone else?


    My keyboard is an IBM from 1993 and I like it that way. | Who is Dan Well? Everyone always says I know Dan Well.Building a web page is like building a birdhouse. Put it up there and watch 'em come. | Maintaining the aspect ratio of an image is more important than having a cold orange pop.

  • #3
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Sydney, Australia
    Thanked 663 Times in 652 Posts
    There is no way to prevent someone amending the content of an email that they receive. The only way to effectively make the email "read only" is to use a security certificate when creating the email so that the email is sent along with a hash value generated by the certificate and the content. Emails sent like that will then identify whether the content is still the original or not when they are opened since if they are changed in any way whatsoever the content will no longer match the hash.

    As for displaying checkboxes and radio buttons in emails - you can't invclude forms in emails at all - you would just include text indicating whatever value was selected.
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts