Ajax - Real time gem i DB
Hejsa,Hvordan gemmer jeg i en Database (fx. vha. ASP) "on the fly" ?
Kan nogle hjælpe med noget Ajax ? Meget gerne et eksempel.
Min kode ser lige nu sådan ud:
----------------------------------------
<%
vagter_id = Request.QueryString("vagtreg")
strINSERT = "INSERT INTO vagtreg (vagter_id) VALUES ( '"
strINSERT = strINSERT & vagter_id & "')"
call Conn.execute(strINSERT)
%>
<form id=form1 name=form1>
a: <select name="vagtreg" onchange="">
<option value="0">The null choice</option>
<option value="1">The first choice</option>
<option value="2">The second choice</option>
<option value="3">The third choice</option>
<option value="4">The fourth choice</option>
</select><br>
</form>
----------------------------------------
Mangler blot lidt ajax ;)
