Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-04-2003, 07:59 PM
WebProWorld New Member
 

Join Date: Nov 2003
Location: Eastern Shore, Maryland
Posts: 2
norm999999 RepRank 0
Default Form Mail script with auto sequential numbering

hello... I'm looking for an email form script that will add an identification number to each msg sent automatically and increase the number sequentially when the next msg is sent. Any suggestions?
Reply With Quote
  #2 (permalink)  
Old 12-04-2003, 08:17 PM
mysticlighthouse's Avatar
WebProWorld Pro
 

Join Date: Jul 2003
Location: Louisville, KY
Posts: 186
mysticlighthouse RepRank 0
Default

Could you provide some more information?

Will you be using any server side languages (asp, php, coldfusion)? a database (mysql, oracle, ingris)?

Describe thoroughly the process that you are wanting. Thanks.
__________________
Bryan DeNosky
Reply With Quote
  #3 (permalink)  
Old 12-05-2003, 01:53 AM
WebProWorld New Member
 

Join Date: Nov 2003
Location: Eastern Shore, Maryland
Posts: 2
norm999999 RepRank 0
Default

Sorry for being vague. A restaurant client wants a form on their site for people to request gift certificates online. The form would sendmail the request to the restaurant admin and the requester. The form will have some standard info fields (name, phone, $$ amount, etc.) They want a unique identifier automatically generated on each request that would be incuded on the email msssages.

The first request would be transaction #0001. The next person to make a request would be transaction #0002. And so on...

The form program will be serverside, either PHP or pearl. I can set up any of several form processing programs for sending the emails, but have not found one that will add a transaction number that will generate and sequence automatically.

Hope this helps explain. Any help would be greatly appreciated!

Norm
Reply With Quote
  #4 (permalink)  
Old 12-05-2003, 04:56 PM
mysticlighthouse's Avatar
WebProWorld Pro
 

Join Date: Jul 2003
Location: Louisville, KY
Posts: 186
mysticlighthouse RepRank 0
Default Use a text file

Simplest way would be to open a text file, read the number from the file, increment the number and then rewrite the file with the new number. You should have no problem doing it with Perl.

Then you could include it in the message body or whatever by a server side include.
__________________
Bryan DeNosky
Reply With Quote
  #5 (permalink)  
Old 12-08-2003, 08:46 AM
sijpie's Avatar
WebProWorld Pro
 

Join Date: Sep 2003
Location: Scotland
Posts: 108
sijpie RepRank 0
Default

Alternatively, you could log each transaction in a database (instantly creating a record of buyers and their email addresses!!) and pull up the next number from the database prior to writing the form.
Reply With Quote
  #6 (permalink)  
Old 12-08-2003, 08:20 PM
mysticlighthouse's Avatar
WebProWorld Pro
 

Join Date: Jul 2003
Location: Louisville, KY
Posts: 186
mysticlighthouse RepRank 0
Default That would work too, but...

sijpie,

that's why I originally asked him first about server side scripting languages and then databases... from his answer it doesn't look like a database has been considered, so an alternative needed to be given.
__________________
Bryan DeNosky
Reply With Quote
  #7 (permalink)  
Old 12-15-2003, 09:25 PM
WebProWorld Member
 

Join Date: Aug 2003
Location: Canada
Posts: 30
AlexBel RepRank 0
Default Re: Form Mail script with auto sequential numbering

If your site lending on the server with Perl and PHP it easy to make script.
What does your server have?
__________________
<-- AlexBel -->
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: , , , , ,



Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0