Jump to content

array counter


dadamssg

Recommended Posts

how would i count how many strings are in a certain array? i want to set up a confirm.php script. I have a register script that will email them a welcome message after they register, but i want it to contain a confirmation link with some variables in the url. In my confirm script i want to grab those variables and check for each one if they match what i have in the db and then confirm them. so it would look like this...

 

 

1. query the database based on $_POST['id'] and grab their info

 

2. for each variable i put in the url, match to see if it matches what i have in the db.

 

3. if the first one matches, set an array with a string in it

 

4. continue in the same array for each one

 

5.check if the array has 3 values stored in it

 

6.if it does confirm, otherwise send them to the register page

 

Link to comment
https://forums.phpfreaks.com/topic/151327-array-counter/
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.