View Full Version : PHP (Text Changer?)

08-31-2011, 06:39 PM
I want to have a form drop-down field where there will be 2 options (first one default, and second one, if its selected, it will change the text in that area (and change it back if the default one is selected again): eg

[Form Dropdown]

[Changeable Wall Text]

So basically, just changing text from one to another with the use of a drop down form field. I know this is possible, but I'm not sure how to do it. Any help will be greatly appreciated!

08-31-2011, 09:20 PM
This isn't PHP and would be better posted in the Javascript forum, although I'm sure it wouldn't take a lot of searching on Google to find a solution.

08-31-2011, 11:50 PM
The site that I am working with is in PHP.

Is there a way to say ... click on a link, and then it switches the include file to something else?

Like say ...
on click change
<?php include("information.php"); ?> to
<?php include("rules.php"); ?>

so it changes from one file to another. So in essence, changing the displayed text to something else.

If I can get that, I can work on the rest on my own as far as a dropdown that I originally said.