/    Sign up×
Community /Pin to ProfileBookmark

Document value is null or not an object.

For some reason I keep getting the error that Document.Reggy.F.value is null or not an object.
Thankyou,
-GB.

[CODE]<html>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″ />
<script language=’javascript’ type=’text/javascript’>
<!–
//
function rawr(){
var ajaxRequest; // The variable that makes Ajax possible!

try{
// Opera 8.0+, Firefox, Safari
ajaxRequest = new XMLHttpRequest();
} catch (e){
// Internet Explorer Browsers
try{
ajaxRequest = new ActiveXObject(‘Msxml2.XMLHTTP’);
} catch (e) {
try{
ajaxRequest = new ActiveXObject(‘Microsoft.XMLHTTP’);
} catch (e){
// Something went wrong
alert(‘Your browser broke!’);
return false;
}
}
}
// Create a function that will receive data sent from the server
ajaxRequest.onreadystatechange = function(){
if(ajaxRequest.readyState == 4){

var ajaxDisplay = document.getElementById(‘mainiac’);
ajaxDisplay.innerHTML = ajaxRequest.responseText;

}

}
var url = ‘Users.php’;
var f=document.Reggy.F.value;
var l=document.Reggy.L.value;
var s=document.Reggy.S.value;
var e=document.Reggy.E.value;
var p=document.Reggy.P.value;
var u = ‘?f=’+f+’&l=’+l+’&s=’+s+’&e=’+e+’&p=’+p;
ajaxRequest.open(‘GET’, url, true);
ajaxRequest.setRequestHeader(‘Content-Type’, ‘application/x-www-form-urlencoded’);
ajaxRequest.send(null);
}
//–>
</script>
</head>
<body>
<table align=right>
<tr>
<td style=”background:url(bmain4.png) repeat-x; border: 1px solid white; text-align:bottom; color: #FFFFFF;”><b><center>Register</center></b><br>
<form name=”Reggy” id=”Reggy” method=”post”/>
<font color=white><b>First Name:</b><br> <input name=”F” id=”F” type=”text” value=”” size=”20″/><br>
<b>Last Name:</b><br> <input name=”L” id=”L” type=”text” size=”20″ value=””/><br>
<b>Email:</b><br> <input name=”E” id=”E” type=”text” size=”20″ value=”” /><br>
<b>School Or Office:</b><br> <input name=”S” id=”S” type=”text” size=”20″ value=”” /><br>
<b>Password:</b><br> <input name=”P” id=”P” type=”text” type=”password” size=”20″ value=”” /><br></font>
</form>
<font color=black><b style=”background-color:#AAAAAA; cursor: pointer;” onclick=rawr();>Submit</b>
</td>
</tr>
</table>
</body>
</html>[/CODE]

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@FangJun 03.2008 — Closed form tag&lt;form name="Reggy" id="Reggy" method="post"[B][COLOR="Red"]/[/COLOR][/B]&gt;
Validate the document
Copy linkTweet thisAlerts:
@GB_001authorJun 03.2008 — Im sorry,

but could you explain what you mean by validate?
Copy linkTweet thisAlerts:
@FangJun 03.2008 — Validate: correct the html errors
×

Success!

Help @GB_001 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...