Note that there are some explanatory texts on larger screens.

plurals
  1. POCreating a dynamic text field that changes content depending on select list choice?
    primarykey
    data
    text
    <p>Me and my colleague are in the process of starting up our own company that handles exam results and school data. I am currently in the process of setting up the webpage (I am completely new with PHP and Dreamweaver CC) where the end-user can access and edit the database in the extent that they need to.</p> <p>But I shall get to the point of my problem. At the moment I am trying to build a data edit page where all relevant data is shown once the user has logged in (In this case it's an admin-kind of person, so he/she needs to see which teacher teaches which classes). On this page I want to build a drop-down list of all the possible Classes (done this with the recordset, sorted alphabetically and working) and linking to that, a dynamic text field that changes value depending on the option picked in the select list.</p> <p>Example:</p> <p>There are four classes, and four corresponding teachers as followed:</p> <h2>Class - Teacher</h2> <p>English - Bob</p> <p>Spanish - Juan</p> <p>Math - Jenny</p> <p>Geography - William</p> <p>What I'm basically after is that if you choose the Class 'English' in the drop-down select list, the text field should display 'Bob' (and similarly for all the other classes). So far I've not managed to work out how to do that in Dreamweaver CC.</p> <p>EDIT: I forgot to mention that both the class names and the corresponding teachers are a result from the query I've set up in a recordset - so instead of having to make the link myself I have to display that link (it does so for the very first school name in the dropdown list, but I think that's because of the nature of the query)</p> <p>Help is much appreciated!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload