If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Dec 2006
    Member #
    Hi. Ive got a form with a drop down list which is set to a default value on a contact page. If it possible to have it so when a link to the contact page somewhere else on the site is clicked the default value of the drop down list changes


  3. #2
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Cottage Grove, Minnesota
    Member #
    720 times
    It could be done with PHP.

    The page with the drop-down list would have the extension .php (instead of .html).
    That page would read a cookie and create the drop-down list using PHP, depending
    on the cookie value, setting the default value.

    The other pages would use PHP to set the cookie. You could also utilize some
    Javascripting, but only if it's not a requirement to make your site work, since a few
    might turn-off Javascripting.

    So you would need to tell us more about your coding experience and possibly a
    link to what you have so far ... so we can see your page with the drop-down list.

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
All times are GMT -6. The time now is 01:21 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: