RSS Forums RSS
Please support our PHP advertiser: Lunarpages PHP Web Hosting

help with creating form counter

Join Date: Jul 2005
Posts: 1
Reputation: onemanarmy is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
onemanarmy onemanarmy is offline Offline
Newbie Poster

help with creating form counter

  #1  
Jul 25th, 2005
hello,

i am creating a web form and i would like to use some kind of counter to create a 'form number' or something similar.

what i did so far was using php to read a txt file on the server, insert that value into a hidden field. (i made the form so that when it is submitted, all the results are sent via an HTML based email...no mysql was used). and then that value is increased by 1, and saved again.

the above works fine, but my problem is that if a form is NOT submitted, the value would increment, and i dont want that. so, i am asking for some advice on how to make it so that it will increment only when the form is successfully submitted.
and i should also mention that i used some javascript for basic form validation....is that a problem? i am still a novice in php.

any tips/suggestions would be most appreciated.

thanks
AddThis Social Bookmark Button
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 6:55 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC