come da titolo
come faccio a inserire testi apostrofati nel form che implementa il mio database senza che mi dia errore?
riporto il codice del FORM:
e del gestore dell invio:codice:<html> <head> <title>aggiungi record</title> <link href="stilicssasp/stiletmusicaasp.css" rel="stylesheet" type="text/css"> </head> <body> <div align="center"> <center> <form method="post" action="add-processdatabaset-musica.asp"> <table border="0" cellpadding="4" width="400" bgcolor="#000000" cellspacing="1" height="142"> <tr> <td width="199" bgcolor="#FFFFCC" height="35"><font size="2" face="Verdana">Artista o Gruppo</font></td> <td width="199" bgcolor="#FFFFCC" height="35"> <p align="center"><input name="artista_gruppo" maxlength="50" size="25"></td> </tr> <tr> <td width="199" bgcolor="#FFFFCC" height="35"><font size="2" face="Verdana">Titolo Album</font></td> <td width="199" bgcolor="#FFFFCC" height="35"> <p align="center"><input name="titolo_album" maxlength="50" size="25"></td> </tr> <tr> <td width="199" bgcolor="#FFFFCC" height="36"><font size="2" face="Verdana">anno</font></td> <td width="199" bgcolor="#FFFFCC" height="36"> <p align="center"><input name="anno" maxlength="50" size="25"></td> </tr> <tr> <td width="199" bgcolor="#FFFFCC" height="36"><font size="2" face="Verdana">genere</font></td> <td width="199" bgcolor="#FFFFCC" height="36"> <p align="center"><input name="genere" maxlength="50" size="25"></td> </tr> <tr> <td width="199" bgcolor="#FFFFCC" height="36"><font size="2" face="Verdana">autore</font></td> <td width="199" bgcolor="#FFFFCC" height="36"> <p align="center"><input name="autore" maxlength="50" size="25"></td> </tr> <tr> <td width="199" bgcolor="#FFFFCC" height="36"><font size="2" face="Verdana">voto (1-5)</font></td> <td width="199" bgcolor="#FFFFCC" height="36"> <p align="center"><input name="voto" maxlength="50" size="25"></td> </tr> <tr> <td width="199" bgcolor="#FFFFCC" height="36"><font size="2" face="Verdana">Testo</font></td> <td width="199" bgcolor="#FFFFCC" height="36"> <p align="center"> <textarea name="testo" cols="25" rows="15">Copia il tuo articolo</textarea> </td> </tr> <tr> <td width="199" bgcolor="#FFFFCC" height="36"> <p align="center"><input type="submit" name="Submit" value="Aggiungi"></td> <td width="199" bgcolor="#FFFFCC" height="36"></td> </tr> </table> </form> </center> </div> </body> </html>
grazie a tutti per la vostra gentilezza!codice:<% artista_gruppo=Request.Form("artista_gruppo") titolo_album=Request.Form("titolo_album") anno=Request.Form("anno") genere=Request.Form("genere") autore=Request.Form("autore") voto=Request.Form("voto") testo=Request.Form("testo") SQL = "INSERT INTO dati_magazine (artista_gruppo,titolo_album,anno,genere,autore,voto,testo)" SQL = SQL&"VALUES('"&artista_gruppo&"','"&titolo_album&"','"&anno&"','"&genere&"','"&autore&"','"&voto&"','"&testo&"')" Conn.Execute(SQL) Response.Redirect "indicemagazineprovalink.asp" %>