Jump to content

form validation


squishypentagon

Recommended Posts

I have a pretty complicated script i'm trying to work on but i'm not having much luck.  Basically what needs to happen is i need part of my script to check a database and count 2 different sets of data for the current date, then if both conditions are true then submit the users name, current date, and a time id to the database it checks, and then submit the form data to a text file.  i'll try and map it out.

 


check database for how many times the username appears for current date

if it is less than 3 move to next validation

if it is false, give error message

 

check database for how many times the time id appears for current date

if it is less than 30 move to next section

if it is false, give error message

 

send username, timestamp (of clients computer),  and time id to the 'totals' database

and

send form data to text file.

 


 

So.... thats it in a nutshell.  I'm going to have to go into my 'cart' page and edit in a row to have the order#, username, timestamp, and time id before the rest of the order details

Link to comment
https://forums.phpfreaks.com/topic/227984-form-validation/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.