Skip to content
Advertisement

Tag: html

replace li tag with different tag according to the bullet level

need to replace the li tags with different customized tag according to the bullet level, For the li level1 keep it as is, for level2 change li to lii, for level3 change li to liii For example for the input below (I have only 2 bullet levels in the below code just as example) desired output as you can see

How to loop through div per div

Horrible title aside, I currently have a dynamic form that has tasks, and per tasks, statuses. The amount of tasks and status can vary. What I’m trying to do is submit the task name, status name, and colors tied to that status. I’m submitting the form via js and the only different thing is creating an array from the colors.

How to show parent and child items form array in php

I am new at php. Maybe a simple question.. I want to make parent->child view. I have an array like this: With key id and key parent. How to draw in cycle correct structure? Maybe at first I need to create function for creating the tree ? Answer Cycle through the source array $arr to detect records that have a

Sanitizing whitespace in generated URL parameters

I’m having an issue with a PHP page that generates an HTML document. On the page, there is a form that has a <select> box, and each <option> inside has a value with the URL parameters to use when changing the window location when the form is “submitted”. The issue is that I noticed is that one of the parameters

How to split text string in PHP (Song – Artist)

I have this bit of PHP ?> I want it to show on my page as: Song Artist How would I make the song appear in bold and what would I put in place of the ” – ” to make a line break instead? Answer Assuming you want to generate some HTML that can be picked up by a

the session created in a page doesnt shares with other

when i create a session in php it still only in one page but doesnt get shared with others the login page code: my login code: and the logoff one: i have noticed that the browser saves a “phpsessid” cookie but it doesnt seems to share with other pages. i tried to print the session id with echo session_id(); but

Advertisement