Hi! I've set up a website where visitors make reservations for a bus trip. They fill out a form with all their necessary info etc. When the form is submitted a CGI script does 2 things.
1) Sends parsed output of form via SENDMAIL to reservations dept of bus company, and
2) Redirects the browser to a thank you page .
All that works fine.
Question
I now want every person to get a unique reservation number.
(If anyone has an easier way let me know, but) I have thought of a way of doing it like this:
1) Utilizing a simple text counter to count hits to the page containing the form.
2) This need not be displayed at this time so I would want the count printed in a hidden form field
3) Once 'submit button' is clicked, that number should also be submitted both in the email and in the Thank You page to the user's browser. If anyone can help me I'll sure thank them!!! By the way tried using Matt's simple counter from scriptarchive.com, but can't get it to work. PLEASE HELP!!!
1) Sends parsed output of form via SENDMAIL to reservations dept of bus company, and
2) Redirects the browser to a thank you page .
All that works fine.
Question
I now want every person to get a unique reservation number.
(If anyone has an easier way let me know, but) I have thought of a way of doing it like this:
1) Utilizing a simple text counter to count hits to the page containing the form.
2) This need not be displayed at this time so I would want the count printed in a hidden form field
3) Once 'submit button' is clicked, that number should also be submitted both in the email and in the Thank You page to the user's browser. If anyone can help me I'll sure thank them!!! By the way tried using Matt's simple counter from scriptarchive.com, but can't get it to work. PLEASE HELP!!!