Log in

View Full Version : How to create auto response number



ratih
11-12-2008, 09:36 AM
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 :confused::)

BabblingIdjit
11-12-2008, 04:40 PM
Perhaps:

$response_number = time();

ratih
11-13-2008, 03:24 AM
thanks...but..im a newbie..so where should i put try this script in php? :D

thanks..

BabblingIdjit
11-13-2008, 04:09 AM
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.