View Single Post
  #3  
Old 03-23-2006, 02:48 PM
Scott is offline Scott
Scott's Avatar
AKA. Panther

Join Date: Sep 2001
Location: Minneapolis, MN
Posts: 10,919

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
__________________

04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq
Reply With Quote