Hi folks,
Im using <?php echo $_SERVER['HTTP_HOST'];?> to get the users domain name for use in a form.
The problem is I only want to get their domain and not the www.
If they use 'www.' to get to the form then 'HTTP_HOST' contains a www.
How can I check to see if it exists and strip is away?