How to get a web link from a html form field
<p>I am using a simple html form to for getting data from users, which the user first previews and then is posted in a Mysql database. The form is:</p>

<pre><code>&lt;form name="MyForm" enctype="multipart/form-data" method="post" action="myupload.php"&gt;
&lt;p&gt;Your name &lt;input type="text" name="FormName" size="25" maxlength="50"&gt; &lt;/p&gt;
&lt;p&gt;Your email &lt;input type="text" name="FormEmail" size="25" maxlength="50"&gt;&lt;/p&gt;
&lt;p&gt; Link &lt;input type="text" name="FormLink" size="25" maxlength="50"&gt;&lt;/p&gt;
&lt;p&gt; &lt;input type="submit" name="Submit" value="Submit"&gt;&lt;/p&gt; 
&lt;/form&gt;
</code></pre>

<p>In the php page I am using the folling code:</p>

<pre><code>$_SESSION['MyName']= $_POST['FormName'];
$_SESSION['MyEmail']= $_POST['FormEmail'];
$_SESSION['MyLink']= $_POST['FormLink'];

$myName = $_SESSION['MyName'];
$myEmail = $_SESSION['MyEmail'];    
$myLink = $_SESSION['MyLink'];

echo "Name: $myConName &lt;br&gt; "; 
echo "Email: $myConEmail &lt;br&gt;";  
echo "&lt;a href=$myLink target=\"_blank\"&gt; Read more&lt;/a&gt;&lt;/p&gt;";
</code></pre>

<p>However, if the user enters <code>http://www.google.com/</code> then it works fine but if the user enters <code>www.google.com/</code> then the webpage (Google.com) cannot be shown. </p>

<p>Any tips will be greatly appreciated. </p>
