Automatically select option from select menu with link

Posted by Ben on Stack Overflow See other posts from Stack Overflow or by Ben
Published on 2010-06-06T21:10:46Z Indexed on 2010/06/06 21:32 UTC
Read the original article Hit count: 455

Filed under:
|
|
|
|

Hello there, I am trying to use php (and if not php, javascript) to link to a page and include a "?type=foo" or "#foo" at the end of the link so that when the linked page loads it will automatically select a specific option, depending on the end of the link, from a dropdown menu in a form. I have tried to search for this but do not know what this action is actually called, but I've seen it done before. Does anyone know how to achieve this? Thanks very much.

© Stack Overflow or respective owner

Related posts about php

Related posts about JavaScript