Ok here are some code snippets
This is the php page that I am editing
Code:
$completed_message_content='Dear $first_name $last_name,\n\n We thank you for your purchase. Please allow 7-10 days for delivery. If you have any questions please feel free to email us at info@yourwebsite.com.';
$completed_subject='Your Book Password...';
$completed_from_email='info@yoursite.com';
$completed_reply_email='sales@yoursite.com';
This is the code used to retrieve the information from the file above
Code:
$handle1 = fopen($completed_email, 'r');
$contents1 = fread($handle1, filesize($completed_email));
// get values from file
foreach($completed_array as $from => $to)
{
if(preg_match("/$from\=\'(.*?)\';/", $contents1, $matches)) {
$config_values[$from] = $matches[1];
}
else {
$config_values[$from] = '';
}
}
$completed_message_content = $config_values['\$completed_message_content'];
$completed_subject = $config_values['\$completed_subject'];
$completed_from_email = $config_values['\$completed_from_email'];
$completed_reply_email = $config_values['\$completed_reply_email'];
fclose($handle1);
This is the form the information is loaded into.
Code:
<form>
<textarea name='completed_message_content' id='completed_message_content' style="width:618px;height:150px" wrap="hard">
<?php echo $completed_message_content; ?>
</textarea>
</form>