Bobo--just_East_of_Madison
asked on
Have a menu option selected on page load, possibly by passing a value through the URL
Hello:
I'd like to pass a value to a web form so that on page load, the menu selection will be made to the predefined value.
For example:
Form on http://www.echoecho.com/htmlforms11.htm below "Settings" defaults to "Butter."
In this example, I'd like to have the menu option be "Milk."
A few caveats:
--I have access to change the code for the page the form is iframed in, but not the form itself.
--I cannot use any third-party software
--I cannot use bookmarklets
--A URL solution is preferred (pass the value in the URL, if possible)
Thanks,
Bobo
I'd like to pass a value to a web form so that on page load, the menu selection will be made to the predefined value.
For example:
Form on http://www.echoecho.com/htmlforms11.htm below "Settings" defaults to "Butter."
In this example, I'd like to have the menu option be "Milk."
A few caveats:
--I have access to change the code for the page the form is iframed in, but not the form itself.
--I cannot use any third-party software
--I cannot use bookmarklets
--A URL solution is preferred (pass the value in the URL, if possible)
Thanks,
Bobo
ASKER
Can't use PHP, but I'm not limited to HTML. I can use javascript (json) and jconsole. I'm on Apache Tomcat and I don't have access to the server, so my assumption is that I wouldn't be able to use PHP without tweaking something with the server. I've never seen PHP run on Tomcat without some server-side tweaking. I have used PHP on Apache.
ok, well...then you should be good. :) You'll have to do some server-side processing, as JS doesn't have the ability to capture POST & GET params...afaik...
ASKER
@bigdogdman
Besides PHP, do you know of any other client-side scripting that can be used? And that doesn't require changes at the server level?
Anyone else?
Besides PHP, do you know of any other client-side scripting that can be used? And that doesn't require changes at the server level?
Anyone else?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
That is, of course, assuming you're submitting to the same page. ;-)