Hi,
Apologise if there's a dozen threads like this already, however, after trawling for hours I can't seem to find anything that achieves what I need.
Basically, I have a contact form, once the user clicks the Submit button, I get the content delivered to my email address, and the user gets a message saying "thank you blah blah, you're ref no. is blah blah". the reference number is nothing special, just a Unix timestamp in PHP. (All this is on the same page as the form also, just an else statement once the form is submitted).
Here is the code so far:
<?php else: ?>
<p>Thank you for your enquiry!</p>
<p>Your reference number is <b><?php
$date=date_create();
echo date_timestamp_get($date);
?></b>. Please quote this Reference Number when corresponding about your enquiry.</p>
<p>We endeavour to respond to each enquiry as soon as possible, however, please allow for up to 3 working days for feedback.</p>
<?php endif; ?>
What I want to happen, really, is that when the user reaches the thankyou page, I also want to grab the printed reference number, which will then also get sent to my email address. So, in effect, I'll have two emails at the end of it: the contact form that was submitted by the user by using a conventional form, and a second email stating the reference number like described above. I highly doubt I'll get a huge amount of queries (touch wood), so i think it will be fit-for-purpose.