Jump to content

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

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.