In message <[EMAIL PROTECTED]>, clay_n_graphics
<[EMAIL PROTECTED]> writes
>I have created a very basic php form and when someone enters their 
>info, they are taken to a confirmation page that displays what they 
>input and emails a copy to me and enters the information into my 
>database.  
>
>Here's my problem:
>
>A- What do I add to the code in to make it display an alternate 
>message every 500th time the form is submitted?

That part is simple - keep a counter - the simplest way is in a text
file, which you read, 
 - if it's less than 500 increment and write, 
 - if it is 500, then do stuff, then write 0.

>B- What do I add to the code so that a email address or person can 
>only submit it once in a designated time period (24 hours)?

Email or person? 

You can't tell who the person is - you can tell if they are using the
same computer (but it might be an internet cafe), and you can tell if
they are using the same email address.

Computers? - look into cookies
Email addresses? - probably simpler to have a database.  Or I suppose
you could do it with cookies (but I wouldn't)

-- 
Pete Clark

http://www.hotcosta.com
http://www.spanishholidaybookings.com




------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12h7p540o/M=362335.6886445.7839731.1510227/D=groups/S=1705005703:TM/Y=YAHOO/EXP=1123696014/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOO&cmpgn=GRP&RTP=http://groups.yahoo.com/";>In
 low income neighborhoods, 84% do not own computers. At Network for Good, help 
bridge the Digital Divide!</a>.</font>
--------------------------------------------------------------------~-> 

Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to