www.webdeveloper.com
Results 1 to 2 of 2

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

  1. #1
    Join Date
    Nov 2013
    Posts
    1

    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
    Posts
    1,145
    Insert this in your form:
    Code:
    <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



Recent Articles