Dev Shed Lounge
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherDev Shed Lounge

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 30th, 2003, 09:29 AM
EllisJ EllisJ is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 16 EllisJ User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy Help! How do I capture Signature on my php mysql application

Can anyone help me?

I have a web based application - using mysql and php. My users will connect to this app via a handheld pc. They will see a form with their "job to undertake" with all the details necessary to complete their task. Once complete the user enters their work and how long it has taken them... etc....etc.

My problem is this : -

On the handheld, there needs to be an entry point where the customer can sign their signature to agree the work. Once the person has signed I will need the handheld user to click on a submit button to lock the signature in place within the work record permanently, so it can be viewed and printed as part of the record at a later date if necessary.

Does anyone have any ideas on how this could be done, or am I asking too much? Has anyone come across this before? Is the coding complicated Can anyone help me please?!

Reply With Quote
  #2  
Old July 30th, 2003, 10:25 AM
icrf's Avatar
icrf icrf is offline
Perl Monkey
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: May 2003
Location: the far end of town where the Grickle-grass grows
Posts: 1,856 icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level)icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level)icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level)icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level)icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level)icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level)icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 10 h 28 m 31 sec
Reputation Power: 103
Send a message via AIM to icrf
Haven't ever tried it or seen it, but I'm sure that's well within Java's capability, be it script or applet, I don't know.

Reply With Quote
  #3  
Old July 30th, 2003, 10:32 AM
EllisJ EllisJ is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 16 EllisJ User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hmmmm,

Can anyone expand any further on this?

I am at a dead end

Any help gratefully appreciated!

Reply With Quote
  #4  
Old July 30th, 2003, 10:48 AM
drgroove's Avatar
drgroove drgroove is offline
pushing envelopes, not pencils
Dev Shed God 2nd Plane (6000 - 6499 posts)
 
Join Date: Feb 2002
Posts: 6,225 drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Day 4 h 44 m 44 sec
Reputation Power: 174
EllisJ,

I realize you're new, but it is bad forum ettiquette to double-post a question.

http://forums.devshed.com/t73288/s.html


Please remove one of these posts.
__________________
Give a person code, and they'll hack for a day; Teach them how to code, and they'll hack forever.
Analyze twice; hack once.
The world's first existential ITIL question: If a change is released into production without a ticket to track it,
was it actually released?


About DrGroove: ITIL-Certified IT Process Engineer - Enterprise Application Architect -
Freelance IT Journalist - Devshed Moderator - Funk Bassist Extraordinaire


Reply With Quote
  #5  
Old July 30th, 2003, 10:57 AM
bcyde's Avatar
bcyde bcyde is offline
Me likey breadsticks...
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jan 2003
Location: Los Angeles
Posts: 1,189 bcyde User rank is Sergeant (500 - 2000 Reputation Level)bcyde User rank is Sergeant (500 - 2000 Reputation Level)bcyde User rank is Sergeant (500 - 2000 Reputation Level)bcyde User rank is Sergeant (500 - 2000 Reputation Level)bcyde User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 Days 1 h 12 m 58 sec
Reputation Power: 12
Send a message via AIM to bcyde Send a message via Yahoo to bcyde
Doesn't sound like something I'd do using PHP if you actually need the graphic of their signature, or well at least not PHP alone.

Since PHP is server side you're going to have to be really clever about capturing that signature on the client and passing it back to the server or use some other means.

A couple of remarks:

1)Is the actual signature, itself, necessary or is it just 1 means of authentication and non-repudiation? If you just need authentication/non-repudiation how about trying to work with usernames/encryption/digital signatures (cryptographically speaking) instead of using a graphic.

2)If you need the actual graphic and are required to stick with PHP you can try (*note purely theoretical) working with javascript to try and capture the cursor movements within a specific div or span and then store these in an array and pass that array to the server when it's submitted. Once the data gets to the server parse it out and use GD or some other graphics library create the image.

HTH

-b
__________________
PostgreSQL, it's what's for dinner...

Reply With Quote
  #6  
Old July 30th, 2003, 11:30 AM
EllisJ EllisJ is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 16 EllisJ User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
1)Is the actual signature, itself, necessary or is it just 1 means of authentication and non-repudiation? If you just need authentication/non-repudiation how about trying to work with usernames/encryption/digital signatures (cryptographically speaking) instead of using a graphic.

.Please expand here! re encryption and digital signatures! The industry I work in is predominantly paper based Yes really! - if I am to justify a piece of work that is queried ( and this happens more often than not) then I need to be able to prove that J. Doe had signed that the work was ok. The person signing for this work may sign for more work at another point in time, or he/she may never sign anything again. I am looking for a simple solution!! If I have to re educate these people then I can. However we will be the first people in our industry sector to use this, so I am sure you can imagine I will be frowned upon, laughed at, and maybe mocked .... etc etc...



2)If you need the actual graphic and are required to stick with PHP you can try (*note purely theoretical) working with javascript to try and capture the cursor movements within a specific div or span and then store these in an array and pass that array to the server when it's submitted. Once the data gets to the server parse it out and use GD or some other graphics library create the image

Would this be a mammoth task? is there any "theoretical" sample code. I am not an expert (or even a beginner in javascript)

Reply With Quote
  #7  
Old July 30th, 2003, 02:00 PM
bcyde's Avatar
bcyde bcyde is offline
Me likey breadsticks...
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jan 2003
Location: Los Angeles
Posts: 1,189 bcyde User rank is Sergeant (500 - 2000 Reputation Level)bcyde User rank is Sergeant (500 - 2000 Reputation Level)bcyde User rank is Sergeant (500 - 2000 Reputation Level)bcyde User rank is Sergeant (500 - 2000 Reputation Level)bcyde User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 Days 1 h 12 m 58 sec
Reputation Power: 12
Send a message via AIM to bcyde Send a message via Yahoo to bcyde
Quote:
.Please expand here! re encryption and digital signatures! The industry I work in is predominantly paper based Yes really! - if I am to justify a piece of work that is queried ( and this happens more often than not) then I need to be able to prove that J. Doe had signed that the work was ok. The person signing for this work may sign for more work at another point in time, or he/she may never sign anything again. I am looking for a simple solution!! If I have to re educate these people then I can. However we will be the first people in our industry sector to use this, so I am sure you can imagine I will be frowned upon, laughed at, and maybe mocked .... etc etc...


When I'm talking about encryption/digital sigs I'm talking about normal username password stuff along with public key encryption used for non-repudiation. Username and password is used for authentication (meaning you are who you say you are) because it's supposed to be equivalent to signing something because theoretically only you should know the username/pass combo. Digital signatures are used for non-repudiation meaning which is just a way of saying the info you sent along hasn't been messed with along the way. There are several methods and algorithms, but it kinda goes like this, hash your original data and send it along with the encrypted data, on the receivers and when the recipient decrypts the data you hash this and compare it with the hash you sent along. If the two hashes match then nothing was tampered with. I'm not exactly how strict you need to be with your security measures, but if you're dealing with health care info make sure you comply with HIPAA guidelines if you want to implement some of this stuff. For further reading check out Applied Cryptography by Bruce Schneier or google PKI or digital signatures. Depending on the exact needs of what you're doing you can decide what you need. If you can just simplify things down to just needing a username and password then that might be the easiest choice.

Quote:
Would this be a mammoth task? is there any "theoretical" sample code. I am not an expert (or even a beginner in javascript)


Well, like I said what I proposed is theoretical, not sure exactly what it will take to do it, here's some initial thoughts.

*I don't think it would be a necessarily mammoth task, but here's what I think it would boil down to:
1)Being able to capture mousemovement within a specific area. This is doable and you can probably find something like a javascript paint program sample which would be very similar.

2)Logging the mouse movement. As long as you can keep a history of the mouse movement or a final snapshot then just store that into a hidden form variable as char delimited text or any other means you like and send this to the server on submit.

3)On the PHP side parse your coordinates and use GD to output your image. If you haven't used GD before it could take a day or two of fiddling but it also shouldn't be that bad.

*The capture method doesn't seem like it could be all that accurate (signatures would resemble a real signature but be grainy/blocky and probably not hard to forge).

What's your timeline and how big of a project is this supposed to be? Hopefully this is some help, or at least will spark some other conversation on alternative methods to accomplish what you're asking for.

-b

Last edited by bcyde : July 30th, 2003 at 02:04 PM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherDev Shed Lounge > Help! How do I capture Signature on my php mysql application


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT