Jump to content

HTML and PHP


dragosf

Recommended Posts

Hello,

 

I'm stuck with something and I wasn't able to locate a solution to this. So I have a register form that calls for a php page to send a message:

 

include('language/' . $setts['site_lang'] . '/mails/register_approval_user_notification.php');

 

The code for register_approval_user_notifications.php:

 

<?

$row_details = $db->get_sql_row("SELECT u.user_id, u.name, u.username, u.email FROM " . DB_PREFIX . "users u WHERE 

u.user_id='" . $mail_input_id . "'");
$send = true; // always sent;

## html message - editable

$html_message = '<html>
<head>
<TABLE WIDTH="745" BORDER="0" BGCOLOR="white" CELLSPACING="2" align="center" CELLPADDING="5">
<tr><td>
Bun&#259; ziua! <br>

<br>

Stimate vizitator AUXELL, <br>

ETC!
<br>

[b]Show date and time here:[/b] 
</td></tr></table></head></html>';

$html_message = sprintf($html_message, $row_details['name'], $setts['sitename'], $row_details['username']);

send_mail($row_details['email'], $setts['sitename'] . ' - Confirmarea inregistrarii', $text_message, 

$setts['admin_email'], $html_message, null, $send);

?>

 

Can someone tell me how I can add the date and time when the mail is being sent after: Show date and time here: ?

Link to comment
https://forums.phpfreaks.com/topic/192349-html-and-php/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.