Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8368309
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T13:21:28+00:00 2026-06-09T13:21:28+00:00

I am currently making a welcome/walkthrough for new users who join my website. Initially

  • 0

I am currently making a “welcome/walkthrough” for new users who join my website.

Initially they will be greeted by recent/top uploads that they can like which will help my website find images they would like for them. But my question is what is the best way of letting users select what they like or not? Currently i have this.

http://jsfiddle.net/BKjJV/

I hope you can get a grasp on what i am trying to achieve here, but if not, to sum it up,

User clicks (n) amount of images to like -> clicks continue -> page grabs all images that have been liked and sends them to a file which adds to my database.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T13:21:29+00:00Added an answer on June 9, 2026 at 1:21 pm

    the easiest way given your code would be something like “on next page button” see what images were chosen by the user and send their name via ajax to a php page that will check it on a database to add them:

    $(document).ready(function(){
        var images = new Array(); //images clicked will be stored here 
        $('#next_page_button').click(function(e){ //button that will send users to the next page
            e.preventDefault(); 
            $('.item').each(function(){ //for each image
                if($(this).find('.clicked').is(":visible")){ //see if the user has clicked on it
                   images.push($(this).find('img').attr('src')); //and if so add it to the array
                }
            });
            $.ajax({   //time to send it to the php page
                url: '', //url of it
                type: 'POST',
                data: {images: encodeURIComponent(images.join())}, //lets merge the array and create a query string of the image separated by a comma and encode them to be sent via POST
                success: function(data){
                        //if the database actions went well, user will be send to the next page
                }                               
            });
        });
    });
    

    on the PHP page you will retrieve the $_POST['images'], split the variables via explode(‘,’ $_POST[‘images’]) and then cicle through the array to check/add it to the database via foreach

    little suggestion: you should use id to create “unique” images and show it on the page, to make it easier to “check/add” them on the database. Using unique numeric index instead of text compare is faster and gives more reliability.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently making a global volunteer site, and the webpages will more or less have
I am currently making a program that will send an email if the date
Im currently making a firefox extension that will let you choose what tabs you
i'm currently making search engine for a website content (only for searching within that
Starting from the top, I am making an application that in the new project
I'm currently making a website where the owners want background ads (a ad as
Im currently making a very simple WebApp on a Website using ASP.NET Framework using
I'm currently making a django website, and I'm confused between using Django-Forms and the
I'm currently making changes to an older version of my app for customers still
I am currently making a program which is supposed to prompt the user to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.