Web Analytics Made Easy -
StatCounter PHP (Text Changer?) - CodingForum

Announcement

Collapse
No announcement yet.

PHP (Text Changer?)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • PHP (Text Changer?)

    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!

  • #2
    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.

    Comment


    • #3
      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.

      Comment

      Working...
      X