All,
I have some forms that my users fill out some forms that have text boxes, selects on it etc. I’d like to be able to print these forms out then but obviously don’t want the form elements etc. I’d like to just print the text for each form object.
Do I have to create a brand new PHP file to handle the printing of a form or can I do something with PHP/CSS etc?
Please let me know what options I have to do this. I’d ideally not like to code a whole new page to mimic the form just to print it.
Thanks
By using CSS’s
@mediadeclaration, you can specify print-specific styles:Obviously, you’d want to go a little more in depth than that, but it should get you started
Documentation
CSS @media on MDN – https://developer.mozilla.org/en/CSS/@media