| w3Util Examples |
Examples
|
|
|
'open the odbc-source
set con = Server.CreateObject( "ADODB.Connection" ) con.Open "Web SQL", "sa", "" 'create the stringutilsobject set str = Server.createObject( "w3.stringutils" ) 'get the form values and convert them into db-friendly values name = str.QuotedStr( Request.form("name") ) email = str.QuotedStr( Request.form ("email") ) 'run the query con.execute( "INSERT INTO db..Names (Name, Email) VALUES( " + name + ", " + email + " ) " ) |