16/06/2005, 18:20
|
| | Fecha de Ingreso: febrero-2005
Mensajes: 17
Antigüedad: 19 años, 9 meses Puntos: 0 | |
Algo logre me falta esto hola mira man hice esto decime si esta bien solo me falta cargar la config como hago
registera
<title>A3 Local - Singup</title><table width="28%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="215"><form name="registera" method="post" action="registera3.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>
registera3
<?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","Administrat or","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> |