J
janet
hi ...
When i click to the submit button, i want to insert value
from the a text box to the mysql db. But when i enter text
in the text box nothing happens on clickign the submit
button. can anyone help me with ..
i am goign crazy
pls see the code below:
<table><tr><td bgcolor="SILVER">
<BIG> <B> <FONT COLOR=blue>
WELCOME 'STUDENT_NAME'
TODAY IS <%=DATE()%></b></td><p></p></tr>
</table><p></p>
<input type = "text" size ="50" maxlength=90 name
= "txtStory"><p></P>
<input type="button" value="DRAFT" name="draft"><p></p>
<input type="button" value="SUBMIT" name="submit">
<%
Dim strStoryContent
DIM RSA
DIM QUERY1
DIM ConnString
DIM Conn
ConnString = "Driver={MySQL ODBC 3.51 Driver};"
ConnString = ConnString & "Port=3306; "
ConnString = ConnString & "DATABASE=test; "
strStoryContent = Request.Form("txtStory")
If(Request.querystring("Submit")) <> "" then
response.write "come1" ....this doesnt get printed!!!!
If Request("txtStory") <> "" then
response.write "come2"
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open ConnString
set RSA = Server.CreateObject("ADODB.Recordset")
QUERY1 = "INSERT INTO student_content
(student_id,story_id,status_student,story_original_story_wo
rd_count) VALUES
('1','100','draft','"&strStoryContent&"',4)"
Set rsa = conn.Execute(QUERY1)
End If
end if
%>
thanks a lot
When i click to the submit button, i want to insert value
from the a text box to the mysql db. But when i enter text
in the text box nothing happens on clickign the submit
button. can anyone help me with ..
i am goign crazy
pls see the code below:
<table><tr><td bgcolor="SILVER">
<BIG> <B> <FONT COLOR=blue>
WELCOME 'STUDENT_NAME'
TODAY IS <%=DATE()%></b></td><p></p></tr>
</table><p></p>
<input type = "text" size ="50" maxlength=90 name
= "txtStory"><p></P>
<input type="button" value="DRAFT" name="draft"><p></p>
<input type="button" value="SUBMIT" name="submit">
<%
Dim strStoryContent
DIM RSA
DIM QUERY1
DIM ConnString
DIM Conn
ConnString = "Driver={MySQL ODBC 3.51 Driver};"
ConnString = ConnString & "Port=3306; "
ConnString = ConnString & "DATABASE=test; "
strStoryContent = Request.Form("txtStory")
If(Request.querystring("Submit")) <> "" then
response.write "come1" ....this doesnt get printed!!!!
If Request("txtStory") <> "" then
response.write "come2"
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open ConnString
set RSA = Server.CreateObject("ADODB.Recordset")
QUERY1 = "INSERT INTO student_content
(student_id,story_id,status_student,story_original_story_wo
rd_count) VALUES
('1','100','draft','"&strStoryContent&"',4)"
Set rsa = conn.Execute(QUERY1)
End If
end if
%>
thanks a lot