OK, i got it to work ^_^
Make sure u make a login in enterprise manager for iis or it wont work.
I cleaned the code a little and fixed 2 small things, i hope the creator doesnt mind...
register.php
<title>A3 Local - Singup</title><table width="28%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="215"><form name="register" method="post" action="regid.php">
<p>User:
<input type="text" name="login">
</p>
<p>Pass:
<input type="text" name="pw">
</p>
<p>
<input type="submit" value="Register">
</p>
</form>
<p> </p>
</td>
</tr>
</table>
regid.php
<?php
$login = stripslashes($_POST['login']);
$pw = stripslashes($_POST['pw']);
if (empty($login) || empty($pw)) {
echo "Some fields were left blank. Please go back and try again.";
**
else {
$msconnect=odbc_connect("LocalServer","Administrator","insert_pass_here");
$msquery = "INSERT INTO account(c_id, c_sheadera, c_sheaderb, c_sheaderc, c_headera, c_headerb, c_headerc, d_cdate, c_status, m_body) VALUES ('$login','$pw','$pw','$pw','$pw','$pw','$pw','1/1/2003 12:00:00','A','$pw')";
$msresults= odbc_exec($msconnect,$msquery);
**
?>
<p><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Your
account has been created succesfully:<br>
Login ID: <?php print "$login"; ?><br>
Password: <?php print "$pw"; ?> <br>
</p>
HF and enjoy
Make sure u make a login in enterprise manager for iis or it wont work.
I cleaned the code a little and fixed 2 small things, i hope the creator doesnt mind...
register.php
<title>A3 Local - Singup</title><table width="28%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="215"><form name="register" method="post" action="regid.php">
<p>User:
<input type="text" name="login">
</p>
<p>Pass:
<input type="text" name="pw">
</p>
<p>
<input type="submit" value="Register">
</p>
</form>
<p> </p>
</td>
</tr>
</table>
regid.php
<?php
$login = stripslashes($_POST['login']);
$pw = stripslashes($_POST['pw']);
if (empty($login) || empty($pw)) {
echo "Some fields were left blank. Please go back and try again.";
**
else {
$msconnect=odbc_connect("LocalServer","Administrator","insert_pass_here");
$msquery = "INSERT INTO account(c_id, c_sheadera, c_sheaderb, c_sheaderc, c_headera, c_headerb, c_headerc, d_cdate, c_status, m_body) VALUES ('$login','$pw','$pw','$pw','$pw','$pw','$pw','1/1/2003 12:00:00','A','$pw')";
$msresults= odbc_exec($msconnect,$msquery);
**
?>
<p><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Your
account has been created succesfully:<br>
Login ID: <?php print "$login"; ?><br>
Password: <?php print "$pw"; ?> <br>
</p>
HF and enjoy
Last edited: