Programming Tools
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingProgramming Tools

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old January 8th, 2004, 06:53 PM
bigjim_l0pht bigjim_l0pht is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 2 bigjim_l0pht User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old January 8th, 2004, 11:15 PM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 14 m 9 sec
Reputation Power: 8
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.

Reply With Quote
  #3  
Old January 9th, 2004, 06:24 AM
bigjim_l0pht bigjim_l0pht is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 2 bigjim_l0pht User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
"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

Reply With Quote
  #4  
Old January 9th, 2004, 11:03 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 14 m 9 sec
Reputation Power: 8
well, what flavour of CGI are you using?
No matter which language you're using, certainly there's tutorials on reading/writing text files...

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > CGI Help!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT