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

  • Home
  • SEARCH
  • 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 8073813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T14:27:31+00:00 2026-06-05T14:27:31+00:00

I currently have a PHP page in which there a couple of div elements

  • 0

I currently have a PHP page in which there a couple of div elements and a listbox. Also, im getting certain data from a database using PHP. I want to be able to modify the text area of the div elements based on the list box selection using PHP. Any ideas on how to do that ?

  • 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-05T14:27:33+00:00Added an answer on June 5, 2026 at 2:27 pm

    With PHP alone you can’t, because it is a server-side script and so when the page reaches the client it cannot be edited via php.

    You can load every possible div into the client page and hide all except one (the default one) and then show/hide the appropriate div based on the list box selection, but you do need JavaScript (or similar) language for this

    PHP: Server-side script (no access to client input except from form submissions!)

    JavaScript: Client-side script (can react to user input and events)

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

Sidebar

Related Questions

I have a PHP application in which there is a div container which includes
I currently have a page defined which displays some data in rows. At the
Currently I have a legacy based non-MVC php framework which I need to update
I'm currently trying to make a page via php which allows the user to
I have a javascript file linked to a PHP page which has a value
I currently have a html login page which has two textfields for e-mail address
I currently have a form set up that passes some data to a php
I currently have a PHP form that uses AJAX to connect to MySQL and
We currently have a working php mail script, this works fine and as we
I currently have a problem within PHP where I want to sort these posts

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.