insert a http:// component into a POST variable
<p>How can I add a 'http://' component to a post variable so that it automatically adds that part so if someone submits: 'www.google.com' is will register as <a href="http://www.google.com" rel="nofollow">http://www.google.com</a>. Heres the code I have so far:</p>

<pre><code>$domain = '&lt;a target="_blank" href="' .$_POST['domain'] . '"&gt;' . $_POST['domain'] .'&lt;/a&gt;';
</code></pre>

<p>so where do I insert the 'http://'? I have tried a few variations with no success perhaps     someone can enlighten me. Thank you.</p>
