If I have code that has an "&" before a var
in both the action command and the javascript and "*amp;" put in place in the javascript, I cannot figure out how to make it a & ?
ie:
$srv="index.php";
$form = new HTML_QuickForm('orderfrm', 'get',$action="$srv?show=results&test=1" );
displays:
<form action="/index.php?show=results*amp;test=1" method="get" name="orderfrm" id="orderfrm">
$attrs = array('onchange' =>
"java script:location.href=
'".$_SERVER['PHP_SELF']."?orderby='+this.options[this.selectedIndex].value;'&show=results&test=1'");
$form->addElement('select', 'orderby', ' Order By:', $orderbylist, $attrs);
displays:
<select onchange="java script:location.href=
'index.php?orderby='+this.options[this.selectedIndex].value;'amp;show=resultsamp;test=1'" name="orderby">
*=& but this forum allows html so '& amp; = &;