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?
| [reply] |
|
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
| [reply] |
|
| [reply] [d/l] [select] |
|
Re: Add timestamp to helpdesk form
by jeffa (Bishop) on Jul 03, 2014 at 20:43 UTC
|
You really want to write your own ticketing system when you can obtain one for free? Just do a google search for open source ticket system.
| [reply] [d/l] [select] |
|
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.
| [reply] |
|
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?
| [reply] [d/l] [select] |
|
|
|
|
|
|
In Chapter 22 of what book?
| [reply] |
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! | [reply] [d/l] [select] |
|
<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! | [reply] [d/l] |