• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[PHP] making box appear after option select

Mooosie

mistofdeath.com
Premium User
Joined
Aug 2, 2008
Messages
742
Solutions
2
Reaction score
52
Location
Sweden
Hello!

I'm trying to make a box with information appear after i choose an option in my opion drop-down.

Lets say my options drop-down looks like this:

PHP:
<fieldset>
<legend><b>Select Vocation Information</b></legend>
<form method="post" name="nameform"> 
<select name="vocations"> 
<optgroup label="Vocations">
<option selected value="***PAGE***">Sorcerer</option> 
<option value="***PAGE***">Druid</option> 
<option value="***PAGE***">Paladin</option> 
<option value="***PAGE***">Knight</option> 
</optgroup>
</select> 
<input type="button" value="Select" onclick="location = document.nameform.vocations.options [document.nameform.vocations.selectedIndex].value;"> </form>
</center>
</fieldset>

Now its set to go to a page when i klick on the 'Select' button thats near the drop-down, but i want a box of information to appear in the same site and display some information about the vocation they have selected. I also want to make several boxes that each have different information and shows up once you choose the vocation they correspond to in the drop-down.



To sum it up:
I want to know how i should do so that when a person chooses an option in the option menu, a specifik box appears and tells you information about that option.


Please help me, any advice could help, this is very important for me!


Thanks!
 
Back
Top