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 8323023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T23:35:06+00:00 2026-06-08T23:35:06+00:00

I have these tag cloud list <ul #id = tag-cloud-list> <li class = items>Music</li>

  • 0

I have these tag cloud list

<ul #id = "tag-cloud-list">
    <li class = "items">Music</li>
    <li class = "items">Lion</li>
    <li class = "items">Dwarf</li<
</ul>

That was generated by JQuery. The items here are tags that I will insert to the database. Now my question is it possible to get all <li> items inside the ul? and put them inside a PHP array? because each of these tags will be inserted in the database. if there’s no way I can get a li items using php then how would Insert these list items into the database? because I needed them since it is tag to a certain item or post

  • 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-08T23:35:08+00:00Added an answer on June 8, 2026 at 11:35 pm

    You have to make an AJAX call:

    var lis = new Array();
    
    // Iterate through the <li> items
    $("#tag-cloud-list").children("li").each(function()
    {
        lis.push($(this).text());
    });
    
    // Make AJAX call and set data to something like "Music::Lion::Dwarf"
    $.ajax({
        url: "dostuff.php",
        type: "POST",
        data: { items: lis.join("::") },
        success: function() { alert("OK"); }
    });
    

    Then in the PHP script, use

    $lis = $_POST['items'];
    $liarray = explode("::", $lis);
    

    to retrieve an array of the li items

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

Sidebar

Related Questions

I have a native Delphi TFrame that emulates Roy Tanck's Cumulus Tag Cloud viewer,
I have these three table to store tags for photo albums. Here is the
I have a tag cloud that I'm including on nearly all of the views
I have a tags property declared like that : @Entity public class BlogArticle {
To start, I know that I have to have the </script> tag, and there
I have these three lists with the same number of elements List<String>competitoinsIDs = new
I have these simplified types: public class DataBean extends ZZZZZ { public String name;
I'm using rails 3.0 and MySql 5.1 I have these three models: Question, Tag
I have these three (or more) lines that I want to surround with li
I have an NSMutableArray of custom objects. The custom object (Tag Class) has an

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.