Abdul Waheed Abdul Waheed - 1 year ago 71
PHP Question

How to store defined constant in a variable

This is defined constant in config file.

define(BASE_URL, "http://example.com/lc-latest/");

I want to store in a variable for sending a confirmation email to complete the registration

$website=echo BASE_URL;

Answer Source

Inline PHP

<a href="<?=BASE_URL;?>confirm.php?accountid=<?=$chk_number;?>">Click here and confirm </a>
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download