Results 1 to 4 of 4

Thread: How to create auto response number

  1. #1
    Join Date
    Jun 2008
    Posts
    15
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question How to create auto response number

    Hi there,

    I have created an online form, and now it is working perfectly with an automated response (php). What I need now, is there any script or anything that could create an automated response reference number? maybe based on date?
    So the each automated response email would have different numbers on them.

    I hope someone could help me, thanks a lot

  2. #2
    Join Date
    Oct 2008
    Posts
    42
    Thanks
    0
    Thanked 9 Times in 9 Posts

    Default

    Perhaps:
    Code:
    $response_number = time();

  3. #3
    Join Date
    Jun 2008
    Posts
    15
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    thanks...but..im a newbie..so where should i put try this script in php?

    thanks..

  4. #4
    Join Date
    Oct 2008
    Posts
    42
    Thanks
    0
    Thanked 9 Times in 9 Posts

    Default

    It's a little hard to say without seeing your code. But the line of code I posted will assign the current time, in seconds since Jan 1, 1970 to the variable $response_code. So, $response_code will contain a value such as 1225258408.

    You can then use this as your reference number. As long as you are not receiving more than one request per second, you should be good.

  5. The Following User Says Thank You to BabblingIdjit For This Useful Post:

    ratih (11-13-2008)

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
  •