7 Replies Latest reply: Dec 5, 2006 8:05 PM by 807599 RSS

    wrong URL

    807599
      Hi
      I am quite new to this forum, have created several webpages for my friends, with their names. So all they have to do is to enter their name in the welcome screen and click submit, this should take them to their respective pages (e.g www.jery.salan.com) Now instead of this, Its taking me to www.salan.com/www.jery.salan.com.
      The code used is as below. Can anyone help me out of this mess

      <html>
      <head>
      <title>Script</title>
      <script language="javascript">
      var cn;
      var strurl;
      function disp(objFrm)
      {

      cn=objFrm.cn.value;
      strurl="www."+cn+".salan.com";
      document.write("<a href="+strurl+">Click Here</a>");
      }


      </script>

      </head>
      <body>
      <form name="frm">

      Enter your Name::<input type=text name="cn"><br>
      <br>


      <input type="button" value="submit" onClick="disp(this.form)">
      </form>
      <br>
      </body>
      </html>

      Thanks

      Still a Learner