I need some help with code.
I have a dropdown with this code
$id = @$_REQUEST["editid1"];
$str = "<select onchange=\"javascript: window.open(this.options[this.selectedIndex].value);\">";
$str.="<option value=\"job_edit.php?editid1=".$id."\">Please select</option>";
$str.="<option value=\"Invoice_view.php?editid1=".$_REQUEST["editid1"]."\">Invoice</option>";
$str.="</select>";
echo $str;
I want to use a button instead to do the same job as the dropdown.
Can I?
Cheers
Paul