SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    Patience... bronze trophy solidcodes's Avatar
    Join Date
    Jul 2006
    Location
    Philippines
    Posts
    933
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Arrow Form validation not working?

    Has anyone here with kind of heart.
    I'm really confuse with this form validation.
    It suppose to check the input box fields for emptiness.

    but the problem it doesn't show the error messages.

    here is the complete codes, that i cut and paste.
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>http://www.kennedycohenpartners.com</title>
    <style type='text/css'>
    <!--
    html
    {
    	overflow-x: auto;
    }
    
    body {
    	margin-left: 0px;
    	margin-top: 0px;
    	margin-right: 0px;
    	margin-bottom: 0px;
    }
    
    #pagewrap {
    	margin: 0 auto;
    	width: 770px;
    	height: auto;
    	border: 0px solid #FFFFFF;
    	background-color:#FFFFFF;
    }
    
    #ipbwrapper
    {
    	margin: 60px auto 60px auto;
    	text-align: left;
    	width: 90%;
    	color: orange;
    	background-color: black;
    }
    
    #header {
    	position:relative;
    	left:auto;
    	top:auto;
    	width:770px;
    	height:77px;
    	z-index:1;
    	background-color: #999999;
    }
    
    #header2 {
    	position:relative;
    	left:auto;
    	top:auto;
    	width:770px;
    	height:90px;
    	z-index:1;
    	background-color: #000099;
    }
    
    #header3 {
    	position:relative;
    	left:auto;
    	top:auto;
    	width:770px;
    	height:35px;
    	z-index:1;
    	background-color: #000099;
    }
    
    #body1 {
    	position:relative;
    	left:auto;
    	top:auto;
    	width:770px;
    	height:900px;
    	z-index:1;
    	background-color: #FFFFFF;
    }
    
    #footer {
    	position:relative;
    	left:auto;
    	top:auto;
    	width:770px;
    	height:51px;
    	z-index:1;
    	background-color: #FFFFFF;
    }
    	table
    		{font-size:80%;background:black}
    	a
    		{color:black;text-decoration:none;font:bold}
    	a:hover
    		{color:#FFFF00}
    	td.menu
    		{background:lightblue}
    	table.menu
    		{
    		font-size:100%;
    		position:absolute;
    		visibility:hidden;
    		}
    
    .style1 {color: #FF00FF}
    -->
    </style>
    
    <script type="text/javascript">
    function showmenu(elmnt){
    	document.getElementById(elmnt).style.visibility="visible"
    }
    
    function hidemenu(elmnt){
    	document.getElementById(elmnt).style.visibility="hidden"
    }
    </script>
    
    <script type="text/javascript">
    <!--
    function MM_reloadPage(init) {  //reloads the window if Nav4 resized
      if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
        document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
      else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
    }
    MM_reloadPage(true);
    
    
    function checkForm()
    {
    	var cgname, cgaddress, cgcity, cgstate, cgzip, cgcountry, cgphone, cgemail, cgcomments;
        with(window.document.msgform)
        {
    		cgname = gname;
    		cgaddress = gaddress;
    		cgcity = gcity;
    		cgstate = gstate;
    		cgzip = gzip;
    		cgcountry = gcountry;
    		cgphone = gphone;
    		cgemail = gemail;
    		cgcomments = gcomments;
        }
    	
        if(trim(cgname.value) == '')
        {
            alert('Please enter your full name.');
            cgname.focus();
            return false;
        }
        else if(trim(cgaddress.value) == '')
        {
            alert('Please enter your address.');
            cgaddress.focus();
            return false;
        }
        if(trim(cgcity.value) == '')
        {
            alert('Please enter your city.');
            cgcity.focus();
            return false;
        }
        else if(trim(cgstate.value) == '')
        {
            alert('Please enter your state');
            cgstate.focus();
            return false;
        }
        else if(trim(cgcity.value) == '')
        {
            alert('Please enter city.');
            cgcity.focus();
            return false;
        }
        else if(trim(cgstate.value) == '')
       {
            alert('Please enter your state.');
            cgstate.focus();
            return false;
        }
        else if(trim(cgzip.value) == '')
        {
            alert('Please enter your zip code.');
            cgzip.focus();
            return false;
        }
        else if(trim(cgcountry.value) == '')
        {
            alert('Please enter your country.');
            cgcountry.focus();
            return false;
        }
        else if(trim(cgphone.value) == '')
        {
            alert('Please enter your telephone number.');
            cgphone.focus();
            return false;
        }
        else if(!isEmail(trim(cgemail.value)))
        {
            alert('Email address is not valid');
            cgemail.focus();
            return false;
        }
        else if(trim(cgcomments.value) == '')
        {
            alert('What is your comment(s)?');
            cgcomments.focus();
            return false;
        }	
        else
        {
    		cgname.value = trim(cgname.value);
    		cgaddress.value = trim(cgaddress.value);
    		cgcity.value = trim(cgcity.value);
    		cgstate.value = trim(cgstate.value);
    		cgzip.value = trim(cgzip.value);
    		cgcountry.value = trim(cgcountry.value);
    		cgphone.value = trim(cgphone.value);
    		cgemail.value = trim(cgemail.value);
    		cgcomments.value = trim(cgcomments.value);
            return true;
        }
    }
    
    /*
    Strip whitespace from the beginning and end of a string
    Input : a string
    */
    function trim(str)
    {
        return str.replace(/^\s+|\s+$/g,'');
    }
    /*
    Check if a string is in valid email format. 
    Returns true if valid, false otherwise.
    */
    function isEmail(str)
    {
        var regex = /^[-_.a-z0-9]+@(([-_a-z0-9]+\.)+(ad|ae|aero|af|ag|ai|al|am|an|ao|aq|ar|arpa|as|at|au|aw|az|ba|bb|bd|be|bf|bg|bh|bi|biz|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|com|coop|cr|cs|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|ec|edu|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gh|gi|gl|gm|gn|gov|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|in|info|int|io|iq|ir|is|it|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|mg|mh|mil|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|museum|mv|mw|mx|my|mz|na|name|nc|ne|net|nf|ng|ni|nl|no|np|nr|nt|nu|nz|om|org|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|pro|ps|pt|pw|py|qa|re|ro|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sy|sz|tc|td|tf|tg|th|tj|tk|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw)|(([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5])\.){3}([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5]))$/i;
        return regex.test(str);
    }
    //-->
    </script>
    </head>
    
    
    
    <body>
    
    <div id='pagewrap'>
    
    <div id="header"><a name="top"><img src="images/los_angeles11.jpg" alt="" name="la11" width="770" height="77" id="la11" /></a></div>
    
      <div id="header2">
    
    		<map name="FPMap0">
    
    		<area href="http://www.kennedycohenpartners.com/contact.htm" coords="685,87,688,62,729,14,753,7,751,31,708,83" shape="polygon">
    
    		<area href="http://www.kennedycohenpartners.com/advisory.htm" shape="polygon" coords="589,86,594,61,630,14,658,8,655,34,614,82">
    
    		<area href="http://www.kennedycohenpartners.com/strategies.htm" shape="polygon" coords="496,83,500,60,535,19,559,13,557,37,519,81">
    
    		<area href="http://www.kennedycohenpartners.com/services.htm" shape="polygon" coords="399,84,403,60,441,15,463,8,462,34,420,80">
    
    		<area href="http://www.kennedycohenpartners.com/support.htm" shape="polygon" coords="300,85,302,60,340,15,366,8,366,37,321,85">
    
    		<area href="http://www.kennedycohenpartners.com/philosopy.htm" shape="polygon" coords="204,89,206,61,244,15,268,9,268,32,223,82">
    
    		<area href="http://www.kennedycohenpartners.com/overview.htm" shape="polygon" coords="106,88,108,64,150,15,173,10,171,33,125,85">
    
    		<area href="http://www.kennedycohenpartners.com/" coords="9,85,12,62,55,12,78,10,77,31,27,84" shape="polygon">
    
    		</map>	
    
      <img src="images/menubuts.jpg" border="0px" width="770" height="90" usemap="#FPMap0" alt="" name="buttons" id="la11" />  </div>
    
    <div id="header3"><img src="images/1contactus2.jpg" alt="" name="label" width="770" height="35" id="label" /></div>
    
    <div id="body1">
    
    	<div id="exchanges" style="position:absolute; left:14px; top:65px; width:160px; height:328px; z-index:3; background-color: #CCCCCC; layer-background-color: #CCCCCC; border: 1px none #000000;">
    
          <table width="100%"  border="0" cellspacing="0" cellpadding="4">
    
            <tr>
    
              <td colspan="2" bgcolor="#CCCCCC"><img src="images/echangejt.jpg" alt="" name="exchanges" width="160" height="19" id="exchanges" /></td>
    
            </tr>
    
            <tr>
    
              <td width="25%" bgcolor="#CCCCCC"><div align="center"><img src="flags/usa.jpg" alt="" name="usa1" width="20" height="12" id="usa1" /></div></td>
    
              <td width="75%" bgcolor="#CCCCCC"><div align="left"><strong><a href="http://www.nasdaq.com/">NAZDAQ</a></strong></div></td>
    
            </tr>
    
            <tr>
    
              <td bgcolor="#CCCCCC"><div align="center"><img src="flags/usa.jpg" alt="" name="usa2" width="20" height="12" id="usa2" /></div></td>
    
              <td bgcolor="#CCCCCC"><strong><a href="http://www.nyse.com/">NYSE</a></strong></td>
    
            </tr>
    
            <tr>
    
              <td bgcolor="#CCCCCC"><div align="center"><img src="flags/uk.jpg" alt="" name="uk1" width="20" height="12" id="uk1" /></div></td>
    
              <td bgcolor="#CCCCCC"><strong><a href="http://www.londonstockexchange.com/">London</a></strong></td>
    
            </tr>
    
            <tr>
    
              <td bgcolor="#CCCCCC"><div align="center"><img src="flags/nz.jpg" alt="" name="nz" width="20" height="12" id="nz" /></div></td>
    
              <td bgcolor="#CCCCCC"><strong><a href="http://www.nzse.co.nz/">New Zealand</a> </strong></td>
    
            </tr>
    
            <tr>
    
              <td bgcolor="#CCCCCC"><div align="center"><img src="flags/australia.jpg" alt="" name="aus" width="20" height="12" id="aus" /></div></td>
    
              <td bgcolor="#CCCCCC"><strong><a href="http://www.asx.com.au/asx/homepage/index.jsp">Australia</a></strong></td>
    
            </tr>
    
            <tr>
    
              <td bgcolor="#CCCCCC"><div align="center"><img src="flags/france.jpg" alt="" name="paris" width="20" height="12" id="paris" /></div></td>
    
              <td bgcolor="#CCCCCC"><strong><a href="http://www.euronext.com/home/0,3766,1732,00.html">Paris</a></strong></td>
    
            </tr>
    
            <tr>
    
              <td bgcolor="#CCCCCC"><div align="center"><img src="flags/germany.jpg" alt="" name="ger" width="20" height="12" id="ger" /></div></td>
    
              <td bgcolor="#CCCCCC"><strong><a href="http://deutsche-boerse.com/dbag/dispatch/s/07B931FB466EA946BC234D314D09FF0A/en/kir/gdb_navigation/home">Germany</a></strong></td>
    
            </tr>
    
            <tr>
    
              <td bgcolor="#CCCCCC"><div align="center"><img src="flags/singapore.jpg" alt="" name="sing" width="20" height="12" id="sing" /></div></td>
    
              <td bgcolor="#CCCCCC"><strong><a href="http://www.ses.com.sg/">Singapore</a></strong></td>
    
            </tr>
    
            <tr>
    
              <td bgcolor="#CCCCCC"><div align="center"><img src="flags/japan.jpg" alt="" name="tokyo" width="20" height="12" id="tokyo" /></div></td>
    
              <td bgcolor="#CCCCCC"><strong><a href="http://www.tse.or.jp/english/index.shtml">Tokyo</a></strong></td>
    
            </tr>
    
            <tr>
    
              <td bgcolor="#CCCCCC"><div align="center"><img src="flags/china.jpg" alt="" name="hk" width="20" height="12" id="hk" /></div></td>
    
              <td bgcolor="#CCCCCC"><strong><a href="http://www.hkex.com.hk/">HongKong</a></strong></td>
    
            </tr>
    
            <tr>
    
              <td bgcolor="#CCCCCC"><div align="center"><img src="flags/taiwan.jpg" alt="" name="tai" width="20" height="12" id="tai" /></div></td>
    
              <td bgcolor="#CCCCCC"><strong><a href="http://www.tse.com.tw/docs/eng_home.htm">Taiwan</a></strong></td>
    
            </tr>
    
            <tr>
    
              <td bgcolor="#CCCCCC"><div align="center"><img src="flags/malaysia.jpg" alt="" name="malay" width="20" height="12" id="malay" /></div></td>
    
              <td bgcolor="#CCCCCC"><strong><a href="http://www.bursamalaysia.com/">Malaysia</a></strong></td>
    
            </tr>
    
            <tr>
    
              <td bgcolor="#CCCCCC"><div align="center"><img src="flags/china.jpg" alt="" name="chi" width="20" height="12" id="chi" /></div></td>
    
              <td bgcolor="#CCCCCC"><strong><a href="http://www.sse.com.cn/sseportal/ps/zhs/home.shtml">China</a></strong></td>
    
            </tr>
    
          </table>
    
    	</div>	
    
        <div id="news" style="position:absolute; left:14px; top:413px; width:160px; height:186px; z-index:3; background-color: #CCCCCC; layer-background-color: #CCCCCC; border: 1px none #000000;">
    
          <table width="100%"  border="0" cellspacing="0" cellpadding="4">
    
            <tr>
    
              <td colspan="2" bgcolor="#CCCCCC"><img src="images/newsjt.jpg" alt="" name="news" width="160" height="19" id="news" /></td>
    
            </tr>
    
            <tr>
    
              <td width="7%" bgcolor="#CCCCCC"><div align="center"></div></td>
    
              <td width="93%" bgcolor="#CCCCCC"><strong><a href="http://www.bloomberg.com/">Bloomberg</a></strong></td>
    
            </tr>
    
            <tr>
    
              <td bgcolor="#CCCCCC"><div align="center"></div></td>
    
              <td bgcolor="#CCCCCC"><strong><a href="http://cbs.marketwatch.com/news/default.asp?siteid=&avatar=seen">CBS</a></strong></td>
    
            </tr>
    
            <tr>
    
              <td bgcolor="#CCCCCC"><div align="center"></div></td>
    
              <td bgcolor="#CCCCCC"><strong><a href="http://moneycentral.msn.com/investor/home.asp">CNBC</a></strong></td>
    
            </tr>
    
            <tr>
    
              <td bgcolor="#CCCCCC"><div align="center"></div></td>
    
              <td bgcolor="#CCCCCC"><strong><a href="http://www.topfinancialnews.com/">Finance Journal</a> </strong></td>
    
            </tr>
    
            <tr>
    
              <td bgcolor="#CCCCCC"><div align="center"></div></td>
    
              <td bgcolor="#CCCCCC"><strong><a href="http://news.ft.com/world/us">Fox News </a></strong></td>
    
            </tr>
    
            <tr>
    
              <td bgcolor="#CCCCCC"><div align="center"></div></td>
    
              <td bgcolor="#CCCCCC"><strong><a href="http://www.investors.com/">Investors</a></strong></td>
    
            </tr>
    
            <tr>
    
              <td bgcolor="#CCCCCC"><div align="center"></div></td>
    
              <td bgcolor="#CCCCCC"><strong><a href="http://www.money.com/">Money</a></strong></td>
    
            </tr>
    
            <tr>
    
              <td bgcolor="#CCCCCC"><div align="center"></div></td>
    
              <td bgcolor="#CCCCCC"><strong><a href="http://www.quicken.com/">Quicken</a></strong></td>
    
            </tr>
    
            <tr>
    
              <td bgcolor="#CCCCCC"><div align="center"></div></td>
    
              <td bgcolor="#CCCCCC"><strong><a href="http://www.reuters.com/">Reuters</a></strong></td>
    
            </tr>
    
            <tr>
    
              <td bgcolor="#CCCCCC"><div align="center"></div></td>
    
              <td bgcolor="#CCCCCC"><strong><a href="http://online.wsj.com/public/us">The WSJ</a> </strong></td>
    
            </tr>
    
          </table>
    
        </div>
    
    
    
    <div id="Layer1" style="position:absolute; left:193px; top:67px; width:565px; height:695px; z-index:2; background-color: #FFFFFF; layer-background-color: #FFFFFF; border: 1px none #000000;">
    
      <table width="565" height="101%"  border="0" cellpadding="0" cellspacing="0">
    
        <tr>
    
          <td width="18" height="19" background="images/topleft.jpg" bgcolor="#FFFFFF">&nbsp;</td>
    
          <td width="521" background="images/top.jpg" bgcolor="#FFFFFF">&nbsp;</td>
    
          <td width="26" background="images/topright.jpg" bgcolor="#FFFFFF">&nbsp;</td>
    
        </tr>
    
        <tr>
    
          <td height="15" background="images/leftside.jpg" bgcolor="#FFFFFF">&nbsp;</td>
    
          <td bgcolor="#FFFFFF">&nbsp;</td>
    
          <td background="images/rightside.jpg" bgcolor="#FFFFFF">&nbsp;</td>
    
        </tr>
    
        <tr>
    
          <td height="447" background="images/leftside.jpg" bgcolor="#FFFFFF">&nbsp;</td>
    
          <td bgcolor="#FFFFFF">&nbsp;</td>
    
          <td background="images/rightside.jpg" bgcolor="#FFFFFF">&nbsp;</td>
    
        </tr>
    
        <tr>
    
          <td height="20" background="images/leftside.jpg" bgcolor="#FFFFFF">&nbsp;</td>
    
          <td bgcolor="#FFFFFF">&nbsp;</td>
    
          <td background="images/rightside.jpg" bgcolor="#FFFFFF">&nbsp;</td>
    
        </tr>
    
        <tr>
    
          <td height="28" background="images/BOTLEFT.JPG" bgcolor="#FFFFFF">&nbsp;</td>
    
          <td background="images/Botom.jpg" bgcolor="#FFFFFF">&nbsp;</td>
    
          <td background="images/botright.jpg" bgcolor="#FFFFFF">&nbsp;</td>
    
        </tr>
    
      </table>
    
    </div>
    
    	
    
    <div id="bottomlabel" style="position:absolute; left:246px; top:816px; width:339px; height:69px; z-index:2">
    
      <table width="100%"  border="0" cellspacing="0" cellpadding="4">
    
        <tr>
    
          <td bgcolor="#FFFFFF"><div align="center"> <strong>KENNEDY COHEN PARTNERS&nbsp; </strong> </div></td>
    
        </tr>
    
        <tr>
    
          <td bgcolor="#FFFFFF"><div align="center"> <strong> E-mail:<span class="style1"> kennedy@kennedycohenpartners.com&nbsp; </span></strong> </div></td>
    
        </tr>
    
        <tr>
    
          <td bgcolor="#FFFFFF"><div align="center"> Copyright &copy; 1996 </div></td>
    
        </tr>
    
      </table>
    
    </div>
    
    
    
    <div id="userform" style="position:absolute; left:217px; top:104px; width:510px; height:623px; z-index:3">
    
    	<form method="post" name="form1" id="form1" action="http://www.kennedycohenpartners.com/smail.php">
    	  <p align="center" style="line-height: 100%; margin: 0">&nbsp;</p>
    
    	  <div align="center">
    
    		<center>
    
    		<table width="100%" height="81%" border="0" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
    		  <tr>
    			<td width="10" height="11" bgcolor="#FFFFFF"></td>
    			<td width="140" height="11" bgcolor="#FFFFFF"></td>
    			<td width="330" height="11" bgcolor="#FFFFFF"></td>
    			<td width="12" height="11" bgcolor="#FFFFFF"></td>
    		  </tr>
    		  <tr>
    			<td width="10" height="204" rowspan="10" bgcolor="#FFFFFF"></td>
    			<td width="140" height="16" bgcolor="#FFFFFF">
    			  <p style="line-height: 100%; margin-top: 0; margin-bottom: 0" align="left">&nbsp;&nbsp;
    			  <b>Name:</b></td>
    			<td width="330" height="16" bgcolor="#FFFFFF">&nbsp;&nbsp; <input name="gname" size="30" tabindex="1"></td>
    			<td width="12" height="204" rowspan="10" bgcolor="#FFFFFF"></td>
    		  </tr>
    		  <tr>
    			<td width="140" height="16" bgcolor="#FFFFFF">
    			  <p style="line-height: 100%; margin-top: 0; margin-bottom: 0" align="left">&nbsp;&nbsp;
    				 <b>Address:</b></td>
    			<td width="330" height="16" bgcolor="#FFFFFF">&nbsp;&nbsp; <input name="gaddress" size="30" tabindex="2"></td>
    		  </tr>
    		  <tr>
    			<td width="140" height="15" bgcolor="#FFFFFF">
    			  <p style="line-height: 100%; margin-top: 0; margin-bottom: 0" align="left">&nbsp;&nbsp;
    			  <b>City:</b></td>
    			<td width="330" height="15" bgcolor="#FFFFFF">&nbsp;&nbsp; <input name="gcity" size="30" tabindex="3"></td>
    		  </tr>
    		  <tr>
    			<td width="140" height="21" bgcolor="#FFFFFF">
    			  <p style="line-height: 100%; margin-top: 0; margin-bottom: 0" align="left">&nbsp;&nbsp;
    			  <b>State:</b></td>
    			<td width="330" height="18" bgcolor="#FFFFFF">&nbsp;&nbsp; <input name="gstate" size="30" tabindex="4"></td>
    		  </tr>
    		  <tr>
    			<td width="140" height="19" bgcolor="#FFFFFF">
    			  <p style="line-height: 100%; margin-top: 0; margin-bottom: 0" align="left">&nbsp;&nbsp;
    			  <b>Zip:</b></td>
    			<td width="330" height="19" bgcolor="#FFFFFF">&nbsp;&nbsp; <input name="gzip" size="30" tabindex="5"></td>
    		  </tr>
    		  <tr>
    			<td width="140" height="16" bgcolor="#FFFFFF">
    			  <p style="line-height: 100%; margin-top: 0; margin-bottom: 0" align="left">&nbsp;&nbsp;
    			  <b>Country:</b></td>
    			<td width="330" height="16" bgcolor="#FFFFFF">&nbsp;&nbsp; <input name="gcountry" size="30" tabindex="6"></td>
    		  </tr>
    		  <tr>
    			<td width="140" height="16" bgcolor="#FFFFFF">
    			  <p style="line-height: 100%; margin-top: 0; margin-bottom: 0" align="left">&nbsp;&nbsp;
    			  <b>Telephone:</b></td>
    			<td width="330" height="16" bgcolor="#FFFFFF">&nbsp;&nbsp; <input name="gphone" size="30" tabindex="7"></td>
    		  </tr>
    		  <tr>
    			<td width="140" height="20" bgcolor="#FFFFFF">
    			  <p style="line-height: 100%; margin-top: 0; margin-bottom: 0" align="left">&nbsp;&nbsp;
    			  <b>E-mail:</b></td>
    			<td width="330" height="20" bgcolor="#FFFFFF">&nbsp;&nbsp; <input name="gemail" size="30" tabindex="8"></td>
    		  </tr>
    		  <tr>
    			<td width="140" height="289" bgcolor="#FFFFFF">
    			  <p style="line-height: 100%; margin: 0" align="center"><b>Comments</b></p>
    			  <p style="line-height: 100%; margin: 0" align="center"><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    			  or&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</b></p>
    			  <p style="line-height: 100%; margin: 0" align="center"><b>Questions</b></td>
    			<td width="330" height="289" bgcolor="#FFFFFF">&nbsp;&nbsp; &nbsp;&nbsp; <textarea cols="33" name="gcomments" rows="10" tabindex="9"></textarea></td>
    		  </tr>
    		  <tr>
    			<td width="140" height="33" bgcolor="#FFFFFF"></td>
    			<td width="330" height="33" bgcolor="#FFFFFF"></td>
    		  </tr>
    		  <tr>
    			<td width="10" height="2"></td>
    			<td width="140" height="2"></td>
    			<td width="330" height="2"></td>
    			<td width="12" height="2"></td>
    		  </tr>
    		</table>
    		</center>
    	  </div>
    	  <p align="center" style="line-height: 100%; margin: 0">&nbsp;</p>
    	  <p align="center" style="line-height: 100%; margin: 0">
    
    	  <input type="submit" value="Submit" name="B1" onclick="return checkForm();"/>
    	  <input type="reset" value="Reset" name="B2">
    	</form>
    </div>
    </div>
    
    <div id="footer">	<img src="images/los_angeles12.jpg" border="0px" width="770" height="51" usemap="#FPMap1" name="la14" id="la14" />
      <map name="FPMap1">
        <area href="#top" shape="polygon" coords="631,44,683,0,740,47" />
      </map>
    </div> 
    </div>
    </body>
    </html>
    you can cut and paste the codes too and try it for yourself.

    I's really a BIG help if someone here would like to check my codes for error
    or mistake, on why is this not working?

    a million tons of thanks to someone can help me with this.

    THANK YOU IN ADVANCE.

  2. #2
    SitePoint Zealot
    Join Date
    Aug 2006
    Location
    Newcastle, England
    Posts
    142
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    try changin the name and id of the form to 'msgform' (instead of form1).

  3. #3
    Patience... bronze trophy solidcodes's Avatar
    Join Date
    Jul 2006
    Location
    Philippines
    Posts
    933
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    ok thejacket.
    thank you very much i'll try your suggestion.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •