| | | OFFLINE | Post: 101.303 Post: 3.505 | Registrato il: 09/01/2004
| Città: MILANO | Età: 36 | Sesso: Femminile | VocenelWeb | Forum Addicted | |
|
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<table width=100% border=0><tr><td align=center><a target=dx href=home.htm>Home</a></td></tr></table>
<br>
<form method="POST" action="menu.asp" width=100%>
<table border="0" width="100%">
<tr> <td align=center height="16" background="images/cat.gif">
<font><b>LOGIN</b></font></span></td>
</tr>
<tr>
<table border="0" width="100%">
<td width="50%">User </td>
<td width="50%"><input type="text" name="username" size="20"></td>
</tr>
<tr>
<td width="50%">Pass </td>
<td width="50%"><input type="password" name="password" size="20"></td></table>
</tr>
</table>
<p>Non sei ancora iscritto?<A HREF=iscriviti.htm>Clicca
qui per iscriverti</a> </p>
<p><input type="submit" value="Invia" name="invio"></p>
</form>
<%
SQL="SELECT * FROM cliente where username='" & request.Form("username") &"' and password='" & request.Form("password") &"'"
set Rs=db.execute(SQL)
if rs.eof then
response.write("Login non effettuato")
else
if rs("tipo")="admin" then %>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr> <td align=center height="16" background="images/cat.gif">
<font><b>AREA CLIENTI</b></font></span></td>
</tr>
<tr>
<div align="left">
<table border="0" width="100%" bgcolor="#DDF0FF">
<tr><td align=center><a target=dx href=iscriviti.htm>Iscriviti</a></td></tr>
<tr><td align=center><a target=dx href=ricerca.asp>Cerca Articoli</a></td></tr>
<tr><td align=center><a target=dx href=riepilogo.asp>Dettaglio Ordini</a></td></tr>
<tr><td align=center><a target=dx href=istruzioni.htm>Istruzioni</a></td></tr>
<tr><td align=center><a target=dx href=cancella.asp>Cancellati</a></td></tr>
</table>
<% else %>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align=center height="16" background="images/cat.gif">
<font><b>AREA RISERVATA</b></font></span></td>
</tr>
<tr>
<div align="left">
<table border="0" width="100%" bgcolor="#DDF0FF">
<tr><td align=center><a target=dx href=magazzino.asp>Magazzino</a></td></tr>
<tr><td align=center><a target=dx href=new.htm>Aggiungi Articolo</a></td></tr>
<tr><td align=center><a target=dx href=dettaglio.asp>Visualizza Acquisti</a></td></tr>
</table>
<%
end if
end if%>
</body></html>
mi da errore alla riga 35 object required "
qualcuno saprebbe aiutarmi? |
08/05/2006 16:11 |
|
|
| | | OFFLINE | Post: 106.578 Post: 38.663 | Registrato il: 15/09/2001
| Sesso: Maschile | VocenelWeb | Forum Addicted | |
|
Scritto da: ~=€MM@=~ 08/05/2006 16.11
<%
SQL="SELECT * FROM cliente where username='" & request.Form("username") &"' and password='" & request.Form("password") &"'"
set Rs=db.execute(SQL)
if rs.eof then
response.write("Login non effettuato")
else
if rs("tipo")="admin" then %>
mi da errore alla riga 35 object required "
qualcuno saprebbe aiutarmi?
La riga 35 è la query SQL,devi controllare tu se nelle funzioni collaterani ci sia errore,nel codice precedente a 1^ vista nn ne ho trovate,forse vedendo meglio,ma nn mi pare
|
08/05/2006 18:35 |
|
| | | OFFLINE | Post: 7.516 Post: 5.151 | Registrato il: 21/04/2001
| Sesso: Maschile | Moderator | Forum Addicted | |
|
Ci sono problemi nell'esecuzione di comandi SQL, anche negli altri files del progetto.
Forse la stringa di connessione del file DB.ASP non è completamente esatta.
|
08/05/2006 18:49 |
|
| | | OFFLINE | Post: 101.356 Post: 3.506 | Registrato il: 09/01/2004
| Città: MILANO | Età: 36 | Sesso: Femminile | VocenelWeb | Forum Addicted | |
|
|
08/05/2006 19:00 |
|
| | | OFFLINE | Post: 106.588 Post: 38.671 | Registrato il: 15/09/2001
| Sesso: Maschile | VocenelWeb | Forum Addicted | |
|
|
08/05/2006 19:01 |
|
| | | OFFLINE | Post: 101.357 Post: 3.507 | Registrato il: 09/01/2004
| Città: MILANO | Età: 36 | Sesso: Femminile | VocenelWeb | Forum Addicted | |
|
|
08/05/2006 19:10 |
|
| | | OFFLINE | Post: 106.592 Post: 38.673 | Registrato il: 15/09/2001
| Sesso: Maschile | VocenelWeb | Forum Addicted | |
|
|
08/05/2006 19:12 |
|
| | | OFFLINE | Post: 101.365 Post: 3.508 | Registrato il: 09/01/2004
| Città: MILANO | Età: 36 | Sesso: Femminile | VocenelWeb | Forum Addicted | |
|
|
08/05/2006 20:11 |
|
| | | OFFLINE | Post: 106.617 Post: 38.680 | Registrato il: 15/09/2001
| Sesso: Maschile | VocenelWeb | Forum Addicted | |
|
|
08/05/2006 20:42 |
|
| | | OFFLINE | Post: 7.520 Post: 5.154 | Registrato il: 21/04/2001
| Sesso: Maschile | Moderator | Forum Addicted | |
|
anche qui il problema dovrebbe essere risolto rinominando il campo "password".
|
09/05/2006 17:13 |
|
| | | OFFLINE | Post: 101.434 Post: 3.512 | Registrato il: 09/01/2004
| Città: MILANO | Età: 36 | Sesso: Femminile | VocenelWeb | Forum Addicted | |
|
questa sn riuscita a sistemarla da sola, e sn finalmente riuscita a far funzionare tutto quello che non andava (tranne una che sto facendo ora) |
09/05/2006 18:45 |
|
|
|