Results 1 to 7 of 7

Thread: Fun with PHP and JS

  1. #1
    Gay Journalist and erotic video producer.
    Join Date
    Jul 2005
    Location
    Itinerant photographer, now in Liverpool... and on Stripchat and Streamen and Chaturbate.
    Posts
    3,490

    Fun with PHP and JS

    I got 2 nagging projects off my plate this week. Both have to do with 2257 Compliant Model Release Forms.

    1) An HTML form where they type in their details.

    2) Then they use their handwriting to sign their name - which gets converted to an image and uploaded to match the text typing.

    3) Then they take photos of the Front of their ID, Back of their ID, and them holding ID by their face - uploaded to match the typed name.


  2. #2
    Gay Journalist and erotic video producer.
    Join Date
    Jul 2005
    Location
    Itinerant photographer, now in Liverpool... and on Stripchat and Streamen and Chaturbate.
    Posts
    3,490
    I first did the handwriting capture in 2013, one day after UPS had come with a package and I signed for it. I figured there must be a way to do that on a tablet or phone! And, of course, there was/is!

    6 years later I needed to do a little updating to that code.


  3. #3
    Gay Journalist and erotic video producer.
    Join Date
    Jul 2005
    Location
    Itinerant photographer, now in Liverpool... and on Stripchat and Streamen and Chaturbate.
    Posts
    3,490
    Even though uploading a file through a form goes back many, many years, HTML5 makes capturing from the camera and uploading it, lean and mean!


  4. #4
    Gay Journalist and erotic video producer.
    Join Date
    Jul 2005
    Location
    Itinerant photographer, now in Liverpool... and on Stripchat and Streamen and Chaturbate.
    Posts
    3,490
    In HTML5 the number of lines of .html code in a <form, to activate the device's Camera or Gallery, and send the image as $_POST, is: THREE lines!!

    3 - THREE - 3 lines of .html!!! Wow HTML5!

    And, the .PHP code to receive the $_POST, name it and copy the image to whatever destination you choose: SIX lines!

    6 - SIX - 6 lines of .PHP!!! WOW PHP 7!

    FUN times with HTML5 and PHP 7!


  5. #5
    Gay Journalist and erotic video producer.
    Join Date
    Jul 2005
    Location
    Itinerant photographer, now in Liverpool... and on Stripchat and Streamen and Chaturbate.
    Posts
    3,490
    Then, yesterday, I added multiple language support: English, Czech, Polish and Romanian, since those are the primary countries' languages that I travel in.


  6. #6
    Moderator Bec's Avatar
    Join Date
    Nov 2003
    Location
    Ohio
    Posts
    8,419
    Always feels good to scratch items off that to-do list!


  7. #7
    Gay Journalist and erotic video producer.
    Join Date
    Jul 2005
    Location
    Itinerant photographer, now in Liverpool... and on Stripchat and Streamen and Chaturbate.
    Posts
    3,490
    You know, I did my first version of that in 2013, when UPS came to the door and I knew it wasn't secret rocket science to capture handwriting. (With .js, it is 7th Grade Geometry: on a simple X-Y Axis Grid. 96 dots per inch horizontal and vertical, where the pen touches, that 1/96th of an inch dot is a "1", where it isn't is a "0".)

    A couple of months ago, I decided to spend $.99 and buy a supposed similar App (iOS and Android in each's App Store), made by an attorney.

    Guess What?!?... it didn't work. The App only calculated the AGE by year, not month/day/year... so it made me a year older than I am. And at age 68, that's pushing it!!

    However, if a photographer was shooting porn with an 18 year old, calculating age purely on YEAR could have missed big time!

    Apple gave me a refund of the $.99, but Google Play wouldn't.

    Then I spent 2 weeks finishing mine... which now does so much more than I had thought of in 2013. Partly because HTML5 and .js do so much more now.

    I contacted the attorney and they wrote back that iOS or Android, or both, upgraded, and "their developers" are working on an update. I reminded them that customer reviews from 4 years ago stated the exact same defect.

    Then they stopped writing me back!!

    Life's a bitch...


Posting Permissions

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