Forum Moderators: open
Is this even possible and if so could someone point me in the right direction?
You will need to use a server-side tech. like PHP, ASP or Coldfusion. If you are running off a Linux box you will probably have PHP [url]www.php.net[/url] available and if you are on a Windows box you will probably have ASP available. Once you know what you have available all you need to do if evaluate the form field passed to the page your form submits to and create/include the content required.
Kind regards,
Andrew
<snip>
[edited by: trillianjedi at 7:34 pm (utc) on April 20, 2006]
[edit reason] TOS [/edit]
You can pass you form info in the url: something.html?dropdown=2
Then on the second page, use a little js function to retrieve the information and then just print to screen depending on the option chosen.
<html>
<head>
<script type="text/javascript">
function getURLParam(strParamName){
var strReturn = "";
var strHref = window.location.href;
if ( strHref.indexOf("?") > -1 ){
var strQueryString = strHref.substr(strHref.indexOf("?"));
var aQueryString = strQueryString.split("&");
for ( var iParam = 0; iParam < aQueryString.length; iParam++ ){
if (aQueryString[iParam].indexOf(strParamName + "=") > -1 ){
var aParam = aQueryString[iParam].split("=");
strReturn = aParam[1];
break;
}
}
}
return strReturn;
}
</script>
</head>
<body>
<script type="text/javascript">
if(getURLParam('dropdown') == 1){
document.write('blah blah');
}else{
document.write('blah blah blah');
}
</script>
</body>
</html>