Results 1 to 2 of 2

Thread: PHP Reference/Order Code Generator

  1. #1
    Join Date
    Jan 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default PHP Reference/Order Code Generator

    Hello All. Before I start....thanks for your patience.
    I need to have my order form (PHP) generate a reference or order form that's unique when the user clicks the SUBMIT button (the form then gets email to me in text). I figured using a time/date stamp would make it unique enough.

    I pulled this off of another forum...

    $reference_num_date = date("ymdHis",$reference_num_secs);

    Apparently, it generates a code like this... 070125230302

    Which is Jan 25, 2007 11:03:02pm.

    This is exactly what I can use. The problem is, how do I get this reference number to appear on the "Thank You for your order" page and have it emailed to me along with the rest of the order?

    Please help!! THANKS

  2. #2
    Join Date
    Jan 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Found a way...

    use $time() function to give you a Unix Time Stamp.

    It's a 10 digit number in seconds from 1970.

    Works for me. Maybe this might help others.

    THANKS...

Bookmarks

Posting Permissions

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