Results 1 to 2 of 2

Thread: Adding today's date to web form on php page

  1. #1
    Join Date
    Nov 2013

    Adding today's date to web form on php page

    I have a webform in a .php page and it's function is to send a persons personal information to a payment gateway company via email.

    My problem is that to be legally compliant I have to include a field that comes through with the person's information that states the date the form was fillled in (apparently the date the email was received isn't enough).

    How do I add a field that doesn't show to the user, but adds the current day's date to the form information?

  2. #2
    Join Date
    Mar 2011
    Insert this in your form:
    <input type="hidden" name="date" value="<?php echo date('Y-m-d'); ?>">
    Rick Trethewey
    Rainbo Design

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