there r no error messages
but in the status bar of Internet Explorer it shows error on page.
i m sending the whole file now.
if u can spare time to look at it.
i will be really grateful
i have made the relevant section bold.
//register.php
[HTML]<html>
<head>
<script type="text/javascript" src="ajax.js"></script>
[/HTML]
- <script type="text/javascript">
-
-
var ajax = new sack();
-
var contentObj;
-
-
-
function showContent()
-
{
-
-
contentObj.innerHTML = ajax.response;
-
-
}
-
-
-
function showWaitMessage()
-
{
-
contentObj.innerHTML = 'Finding article.....<br>Please wait';
-
-
}
-
-
function getAjaxFile(fileName)
-
{
-
ajax.requestFile = fileName;
-
ajax.onCompletion = showContent;
-
ajax.onLoading = showWaitMessage;
-
ajax.runAJAX();
-
}
-
-
-
-
function CAPTCHA()
-
{
-
getAjaxFile(captcha.php);
-
}
-
-
-
-
function initAjaxDemo()
-
{
-
contentObj = document.getElementById('div_captcha');
-
}
-
-
-
window.onload = initAjaxDemo;
-
-
</script>
- function agreeTerms()
-
{
-
-
if(document.form1.terms.checked == true)
-
{
-
document.getElementById('div_terms').style.display="none";
-
-
document.form1.register.disabled = false;
-
-
}
-
-
if(document.form1.terms.checked == false)
-
{
-
document.getElementById('div_terms').style.display="block";
-
document.getElementById('div_terms').innerHTML="<font color='red'>You need to agree to have a <font
-
-
color='white'> Web<font color='orange'>mail</font></font> account </font>";
-
document.form1.register.disabled = true;
-
}
-
-
}
-
</script>
-
[HTML]</head>
<body bgcolor="black" text="white" vlink="black" alink="black">
<table width="1230" border="2" cellspacing="0" cellpadding="0" align="center" name="header" background="bg_header.jpg">
<tr>
<td><img src="top.jpg"></td>
</tr>
</table>
<font color="white">
<br><br><br>
<div align="center">
Fields marked with asterisk(*) are compulsary.
</div>
<table align="center">
<form name="form1" id="form1" action="http://localhost/website/reg-com.php" method="post" onsubmit="return validate_form
(this)" >
<tr>
<td align="right" valign="bottom"><font color="white">Username *</font></td>
<td><div name="div_email" id="div_email"></div><input type="text" name="email" id="email" maxlength="15">
</td>
</tr>
<tr>
<td align="right" valign="bottom"><font color="white">Password *</font></td>
<td><div name="div_password" id="div_password"></div><input type="password" name="password" id="password"
maxlength="15"></td>
</tr>
<tr>
<td align="right" valign="bottom"><font color="white">Retype Password *</font></td>
<td><div name="div_repassword" id="div_repassword"></div><input type="password" name="repassword" id="repassword"
maxlength="15"></td>
</tr>
<tr>
<td align="right" valign="bottom"><font color="white">Enter your Security Question*</font></td>
<td><div name="div_securityq" id="div_securityq"></div><input type="text" name="securityq" id="securityq" size="40"
maxlength="25"> ?
</td>
</tr>
<tr>
<td align="right" valign="bottom"><font color="white">Enter your Security Answer*</font></td>
<td><div name="div_securitya" id="div_securitya"></div><input type="text" name="securitya" id="securitya" size="10"
maxlength="10">
</td>
</tr>
<tr>
<td align="right" valign="bottom"><font color="white">Date of Birth *</font></td>[/html]
[html]<td>
<div name="div_dob" id="div_dob"></div>
<select name="months">
<option value="MM" selected="selected">MM</option>
<option label="Jan" value="01">Jan</option>
<option label="Feb" value="02">Feb</option>
<option label="Mar" value="03">Mar</option>
<option label="Apr" value="04">Apr</option>
<option label="May" value="05">May</option>
<option label="Jun" value="06">Jun</option>
<option label="Jul" value="07">Jul</option>
<option label="Aug" value="08">Aug</option>
<option label="Sep" value="09">Sep</option>
<option label="Oct" value="10">Oct</option>
<option label="Nov" value="11">Nov</option>
<option label="Dec" value="12">Dec</option>
</select>
<select name="days">
<option value="DD" selected="selected">DD</option>
<option label="1" value="01">1</option>
<option label="2" value="02">2</option>
<option label="3" value="03">3</option>
<option label="4" value="04">4</option>
<option label="5" value="05">5</option>
<option label="6" value="06">6</option>
<option label="7" value="07">7</option>
<option label="8" value="08">8</option>
<option label="9" value="09">9</option>
<option label="10" value="10">10</option>
<option label="11" value="11">11</option>
<option label="12" value="12">12</option>
<option label="13" value="13">13</option>
<option label="14" value="14">14</option>
<option label="15" value="15">15</option>
<option label="16" value="16">16</option>
<option label="17" value="17">17</option>
<option label="18" value="18">18</option>
<option label="19" value="19">19</option>
<option label="20" value="20">20</option>
<option label="21" value="21">21</option>
<option label="22" value="22">22</option>
<option label="23" value="23">23</option>
<option label="24" value="24">24</option>
<option label="25" value="25">25</option>
<option label="26" value="26">26</option>
<option label="27" value="27">27</option>
<option label="28" value="28">28</option>
<option label="29" value="29">29</option>
<option label="30" value="30">30</option>
<option label="31" value="31">31</option>
</select>
<select name="years">
<option value="YYYY" selected="selected">YYYY</option>
<option label="1971" value="1971">1971</option>
<option label="1972" value="1972">1972</option>
<option label="1973" value="1973">1973</option>
<option label="1974" value="1974">1974</option>
<option label="1975" value="1975">1975</option>
<option label="1976" value="1976">1976</option>
<option label="1977" value="1977">1977</option>
<option label="1978" value="1978">1978</option>
<option label="1979" value="1979">1979</option>
<option label="1980" value="1980">1980</option>
<option label="1981" value="1981">1981</option>
<option label="1982" value="1982">1982</option>
<option label="1983" value="1983">1983</option>
<option label="1984" value="1984">1984</option>
<option label="1985" value="1985">1985</option>
<option label="1986" value="1986">1986</option>
<option label="1987" value="1987">1987</option>
<option label="1988" value="1988">1988</option>
<option label="1989" value="1989">1989</option>
<option label="1990" value="1990">1990</option>
<option label="1991" value="1991">1991</option>
<option label="1992" value="1992">1992</option>
<option label="1993" value="1993">1993</option>
<option label="1994" value="1994">1994</option>
<option label="1995" value="1995">1995</option>
<option label="1996" value="1996">1996</option>
<option label="1997" value="1997">1997</option>
<option label="1998" value="1998">1998</option>
<option label="1999" value="1999">1999</option>
<option label="2000" value="2000">2000</option>
<option label="2001" value="2001">2001</option>
<option label="2002" value="2002">2002</option>
<option label="2003" value="2003">2003</option>
<option label="2004" value="2004">2004</option>
<option label="2005" value="2005">2005</option>
</select></td>
</tr>
<tr>
<td align="right" valign="bottom"><font color="white">Gender *</td>
<td>
<div name="div_gender" id="div_gender"></div>
<input type="radio" name="gender" id="gender" value='m'><font color="white"> male</font>
<input type="radio" name="gender" id="gender" value='f'><font color="white"> female</font>
</td>
</tr>
<tr>
<td align="right" valign="bottom"><font color="white">Type the characters below *</font></td>
<td valign="bottom"><div name="div_visual" id="div_visual"></div><input type="text" name="visual" id="visual"></td>
</tr>
<tr>
<td valign="top">(Letters are not case sensitive) </td>
<td valign="top">
<div id="div_captcha">
<p>This will load the the content of external articles into this DIV</p>
</div>
</td>[/html]
[html]<td>
<img alt="Request new image" align="right" src="req_im.gif" onclick="CAPTCHA()">
</td>
</tr>
<tr>
<td></td>
<td align="left">
<textarea onfocus="this.rows=30" border=1 style="text-align:left" rows="5" cols="55" style="color:white;background-color:rgb
(45,45,70); overflow:hidden" readonly onblur="this.rows=5">
TERMS & CONDITIONS
In order to use the Services, you must first agree to the Terms. You may not use the Services if you do not accept the Terms.
1.You acknowledge and agree that if Webmail disables access to your account, you may be prevented from accessing the
Services, your account details or any files or other content which is contained in your account.
2.You agree that any registration information you give to Webmail will always be accurate, correct and up to date.
3.You understand that by using the Services you may be exposed to Content that you may find offensive, indecent or
objectionable and that, in this respect, you use the Services at your own risk.
4.The Terms will continue to apply until terminated by either you or Google as set out below.
5.Unless you have agreed otherwise in writing with Webmail, nothing in the Terms gives you a right to use any of Webmail’s
trade names, trade marks, service marks, logos, domain names, and other distinctive brand features.
</textarea>
</td>
</tr>
<tr>
<td align="right" valign="bottom">
<input type="checkbox" name="terms" id="terms" checked onclick="agreeTerms()">
</td>
<td>
<div id="div_terms" name="div_terms" ></div>
<font color="white">I agree to the terms and conditions.</font>
</td>
</tr>
</table>
<br>
<div align="center">
<input type="submit" name="register" id="register" value="register">
</div>
</form>
</font>
</body>
</html>[/HTML]
//contents of captcha.php
[PHP]<?php
srand(time());
for($i=0;$i<5;$i++)
{
$string=(rand()%6);
echo $string;
}
?>[/PHP]