--- clay_n_graphics <[EMAIL PROTECTED]> wrote:

> 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?

You will need to keep track of your entry numbers in the DB and consult it. 
One way would be to look at the primary key value and perform a modulus ($n %
500) and if the value is 0 then it is a value which is evenly divisible by 500.

> 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)?

A session variable would be helpful here.


> It seems like it wouldn't be complicated, but I'm having a brain 
> freeze.
> 
> Thanks for any assistance :)


James
_____

James D. Keeline
http://www.Keeline.com  http://www.Keeline.com/articles
http://Stratemeyer.org  http://www.Keeline.com/TSCollection

http://www.ITeachPHP.com -- Free Computer Classes: Linux, PHP, etc.
Summer Semester Begins Jun 20 -- New Classes Start Every Few Weeks.


------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12hglsnfo/M=362329.6886308.7839368.1510227/D=groups/S=1705005703:TM/Y=YAHOO/EXP=1123696268/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
">Fair play? Video games influencing politics. Click and talk back!</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