www.webdeveloper.com
Results 1 to 5 of 5

Thread: How do I print a questionaire after submission?

  1. #1
    Join Date
    Sep 2004
    Location
    PUnta Gorda
    Posts
    4

    Unhappy How do I print a questionaire after submission?

    I have two questionaires on my web site and I would like for people to be able to print their responses after they submit the form? Is this possible and if so how do I do it?

  2. #2
    Join Date
    Sep 2004
    Location
    PUnta Gorda
    Posts
    4
    Is it impossible? Do I need to explain the situation better? AM I just SOL? Someone please give me something.

  3. #3
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,330
    Of course it is possible.

    There are probably as many ways to do it as there are web developers. I'd probably use PHP pages, because that's what I know.
    Last edited by NogDog; 09-24-2004 at 09:53 AM.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  4. #4
    Join Date
    Sep 2004
    Location
    PUnta Gorda
    Posts
    4
    I am actually usually network solutions to just type the text I want where. My boss wont pay me enough to sit and write the code. But I know I will need to do make the page print. That's what I need the help with. The pop up box after hitting the submit button that either asks if you want to print the page or email it to yourself. Something so people can have a record of what they submitted.

  5. #5
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,270
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">
    <html lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <meta name="Content-Script-Type" content="text/javascript">
    <meta name="Content-Style-Type" content="text/css">
    <title>Example</title>

    <style type="text/css">
    <!--
    form {width:10em}
    fieldset {padding:1ex}
    label {display:block; margin:1em 0}
    input {display:block; width:9em}
    button {display:block; margin:auto}
    -->
    </style>

    </head>
    <body>
    <form action="someScript.pl" onsubmit="if (window.print && confirm('Print this form?')) window.print()">
    <fieldset>
    <legend>Example</legend>
    <label>Name<input type="text"></label>
    <label>Address<input type="text"></label>
    <button type="submit">Submit</button>
    </fieldset>
    </form>
    </body>
    </html>
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles