Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Add timestamp to helpdesk form

by csorrentini (Acolyte)
on Jul 03, 2014 at 20:33 UTC ( [id://1092207]=perlquestion: print w/replies, xml ) Need Help??

csorrentini has asked for the wisdom of the Perl Monks concerning the following question:

Hello monks, I'm wondering how I could go about adding a timestamp to be submitted with a form for a helpdesk ticket so the technician knows what time it was submitted. I was going to post it but since it is HTML formatting it would look funky here. Anyone have any ideas? If more info is needed I'll gladly try to answer

Replies are listed 'Best First'.
Re: Add timestamp to helpdesk form
by Corion (Patriarch) on Jul 03, 2014 at 20:39 UTC

    Where does Perl come into the picture?

    Is Perl producing the HTML that the user then submits?

    Is Perl the helpdesk ticket system that receives the data?

    Is Perl sending the data to the helpdesk system?

      It's for a class assignment. Essentially using PERL to create the HTML code which returns the information input to a CGI file on the server. http://tinypic.com/r/19qjch/8 here is what I currently have. Just need to add a way for a timestamp to be submitted as well
        I would use DateTime to collect and format the stamp. That code will be inserted into the /cgi-bin/helpdesk.cgi script.

        As an aside, you would not have formatting issues with your desired post if you wrap it in <code> tags ... see Markup in the Monastery.


        #11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.

Re: Add timestamp to helpdesk form
by jeffa (Bishop) on Jul 03, 2014 at 20:43 UTC
      In Chapter 22 you built a simple helpdesk form. “Spice up” that form with fancy colors or fonts. Also, add a timestamp so the repair technician will know when it was submitted. That is what the assignment asks for. I already editted the formatting and such just not sure about adding a timestamp this way.

        But where is the ticket being stored? If this were an enterprise level solution then you would store the ticket as a record in a database table. When you insert the record, you could set up a timestamp column. When the technician requests those tickets assigned to themselves, the ticket is pulled from the database as a record and you simply display the fields on the form, including the date/time.

        And if you are storing these as a flat file, well, there really isn't much difference because in the end you will be pulling all the data about that ticket and displaying most of it (if not all) on the ticket page. Make sense?

        jeffa

        L-LL-L--L-LL-L--L-LL-L--
        -R--R-RR-R--R-RR-R--R-RR
        B--B--B--B--B--B--B--B--
        H---H---H---H---H---H---
        (the triplet paradiddle with high-hat)
        
        In Chapter 22 of what book?
Re: Add timestamp to helpdesk form
by Anonymous Monk on Jul 03, 2014 at 20:53 UTC
    <h3>Fear not the Perlmonks formatting!</h3> <p>When posting code and data, try the <code></code> tags to encase yo +ur data and/or code without mangling special characters.</p> <i><font size=-1><p>PS: classic HTML tags outside of code tags can als +o be used to format your post well. An improved question allows bett +er and quicker replies.</p> <p>PPS: See the Writeup Formatting Tips and other links shown when you +'re writing your post!</p></font></i>

    Fear not the Perlmonks formatting!

    When posting code and data, try the tags to encase your data and/or code without mangling special characters.

    PS: classic HTML tags outside of code tags can also be used to format your post well. An improved question allows better and quicker replies.

    PPS: See the Writeup Formatting Tips and other links shown when you're writing your post!

      <form action="/cgi-bin/helpdesk.cgi" name="helpdesk"> <body style="background-color:yellow;"> <p> <u><h1 style="font-family:verdana;"><strong>Problem type:</strong></h1 +></u> <input type="radio" name="probtype" value="hardware"/><strong>Hardware +</strong> <input type="radio" name="probtype" value="software"/><strong>Software +</strong> <br/> <textarea name="problem" rows="10 cols="40"> Describe your problem. </textarea> <br/> <strong>YourName:</strong> <input type="text" width="40" name="name" /><br/> <input type="submit" name="submit" value="Submit Problem" /> </form>
      oh nice thanks!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1092207]
Approved by GotToBTru
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2024-04-24 03:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found