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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.