On line 528
Change this:
PHP Code:
<form method="post" action="><?=$_SERVER['PHP_SELF'];?>" enctype="multipart/form-data" name="phmailer" onsubmit="return Checkit(this);">
To this:
PHP Code:
<form method="post" action=">?=$_SERVER['PHP_SELF'];?>?mail=>?=$_GET['mail'];?>" enctype="multipart/form-data" name="phmailer" onsubmit="return Checkit(this);">
And Line 557:
Change this:
PHP Code:
<?
while(list($key,$val)=each($subjects)) {?>
<option value="<?=intval($key);?>"><?=htmlspecialchars(stripslashes($val));?></option>
<?}?>
To This:
PHP Code:
<?
while(list($key,$val)=each($subjects)) {
If($_GET['mail']==$val) {
$selected=" selected=\"selected\"";
} Else {
$selected="";
}
?>
<option value="<?=intval($key);?>"<?=$selected;?>><?=htmlspecialchars(stripslashes($val));?></option>
<?}?>
And then when you link to the mail form, use something like this: phMailer.php?mail=HelpDesk, or phMailer.php?mail=Customer_Service