Signup form problem
Posted: Tue Mar 21, 2006 5:49 pm
feyd | Please use
feyd | Please use
Code: Select all
andCode: Select all
tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hey guys. I was hoping someone could help me out on this one. I have written a script that is supposed to write the username, password, and so on into a specified file. I can't seem to get it right.. If there is someone who can correct my errors, that'd be fantastic. Thanks.Code: Select all
<? include_once('_header.php'); ?>
<br />
<script language="JavaScript1.2">
/*---For flat scrollbars. Colors: line1 - #ff3300, line2 - #000000, face1 - #000000, face2 - #ff3300*/
function clrBar(line,face)
{
with(document.body.style)
{
scrollbarDarkShadowColor=line;
scrollbar3dLightColor=line;
scrollbarArrowColor="grey";
scrollbarBaseColor=face;
scrollbarFaceColor=face;
scrollbarHighlightColor=face;
scrollbarShadowColor=face;
scrollbarTrackColor="#000000";
}
}
function setcolor()
{
var w = document.body.clientWidth;
var h = document.body.clientHeight;
var x = event.clientX;
var y = event.clientY;
if(x>w) clrBar("#ff3300","#000000"); // Colors of active state
else clrBar("#000000","#ff3300"); // Colors of normal state
}
if (document.all){
clrBar(null,null);
document.onmousemove=setcolor;
}
</script>
<form name="signup" method=get>
<p>
<table cellspacing="2" cellpadding="2" align="center">
<td><div>Your Race:</div></td>
<td><select name="race" class="black">
<option value="0"> </option>
<option value="Human">Human</option><option value="Elf">Elf</option><option
value="Dwarf">Dwarf</option><option value="Orc" >Orc</option>
<tr>
<td><div>Username:</div></td>
<td><input type="text" name="strUSERNAME" maxlength="25" class="black"></td>
</tr>
<tr>
<td><div>Password:</div></td>
<td><input type="password" name="strPASSONE" maxlength="32" class="black"></td>
</tr>
<tr>
<td><div>Retype Password(Verification):</div></td>
<td><input type="password" name="strPASSTWO" maxlength="32" class="black"></td>
</tr>
<tr>
<td><div>Email Address:</div></td>
<td><input type="text" name="strEMAILONE" maxlength="32" class="black"></td>
</tr>
<tr>
<td><div>Email Address(Verification):</div></td>
<td><input type="text" name="strEMAILTWO" maxlength="32" class="black"></td>
</tr>
<tr>
<td valign=bottom>Verify Image Text: </td>
<td><img src="function.imageverify.php" /><br /><input type="text" maxlength="4" name="verify"></td>
</tr>
</table>
</form>
<?
$fp=fopen("userinfo.txt", "w+");
fwrite($fp, strPASSTWO);
fclose($fp);
?>
<br />
<center>
<input type="submit" border="0" name="strREGISTER" value="Submit">
<br />
<br />
<br />
When you join, an email will be sent to your email address where you will be given a link that you can activate your account.
It is recommended you not use a fake email address because you will not be able to activate your account, therefore making it
impossible to play. So BE CAREFUL!
</center>
<? include_once('_footer.php'); ?>feyd | Please use
Code: Select all
andCode: Select all
tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]