|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
CGI Help!
Hello, I have a problem with a cgi script. I am making a form and have it set-up to auto-reply when someone enters the information and presses submit. Heres my problem. how do I send them a registration code? eg. 1st user gets sent 100-5-4-0 as code in email, next user gets 100-5-4-1, next 100-5-4-2 and so on. Thank You
|
|
#2
|
||||
|
||||
|
I've done CGI with perl and bourne shell... The best answer for either one would be to create a text file that would contain a counter and read/increment/save every time the form is processed...
perhaps if you're using mysql or some other database you could create the script to operate large scale... since using a text file would mess up if more than one person tries accessing it at once. |
|
#3
|
|||
|
|||
|
"The best answer for either one would be to create a text file that would contain a counter and read/increment/save every time the form is processed..."
How would I do this? I am a total newbie and hardly know anything about cgi. Thank-You |
|
#4
|
||||
|
||||
|
well, what flavour of CGI are you using?
No matter which language you're using, certainly there's tutorials on reading/writing text files... |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Programming Tools > CGI Help! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|