Wednesday, August 17, 2011

How can I create a form that when the user presses submit it generates a printable list for them?

You have 2 options. Either the form really does a submission to a script running on the web server that generates a page containing the list to be printed or you use Javascript to intercept the submission and rewrite the page's content based on the chosen options. Almost any web host you use is going to provide some kind of server-side scripting, even if it's Perl scripts in /cgi-bin/. If you've emailed this web page to them or they're opening the html file from their system without going to http://______/yourform (they''ll see file:// instead of http:// in the location bar if that's the case) then the Javascript solution is really your only option.

No comments:

Post a Comment